Commit 10775a9b by Anton Sudak

Initialize bottom block as a horizontal collection

parent a6bda715
......@@ -7,6 +7,7 @@ import ch.insign.cms.CMSApi;
import ch.insign.cms.blocks.backendlinkblock.BackendLinkBlock;
import ch.insign.cms.blocks.errorblock.ErrorPage;
import ch.insign.cms.blocks.groupingblock.GroupingBlock;
import ch.insign.cms.blocks.horizontalcollection.HorizontalCollectionBlock;
import ch.insign.cms.models.*;
import ch.insign.cms.permissions.ApplicationPermission;
import ch.insign.cms.permissions.BlockPermission;
......@@ -218,7 +219,7 @@ public class DemoProjectBootstrapper extends DefaultBootstrapper {
try {
AbstractBlock homepage = AbstractBlock.find.byKey(PageBlock.KEY_HOMEPAGE, site.key);
CollectionBlock bottomPane = (CollectionBlock) Template.addBlockToSlot(CollectionBlock.class, homepage, "bottom");
CollectionBlock bottomPane = (HorizontalCollectionBlock) Template.addBlockToSlot(HorizontalCollectionBlock.class, homepage, "bottom");
TeaserBlock block, block2, block3;
block = (TeaserBlock) bottomPane.addSubBlock(TeaserBlock.class);
block.getTitle().set("en", "Teaser block");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment