Named Content Holders

Updated on 10-July-2015 at 12:08 PM

You can insert a content module using it's ID or you can insert a content holder module using it's name:

{module_contentholder, name="Test Holder"}

In the system folder - _system / ContentHolders you will find the .html files for your content holders.

To make a new one and insert that into a template you can do the following steps with this method.

1. Create a file like Test Holder.html in the folder _system / ContentHolders

You can have capitals and spaces as this will be used to generate the content holders name. This file wont be used (or seen) on your website itself

2. Upload the file via FTP

3. You can now find that Content Holder in the Admin interface

Screen shot 2012-04-07 at 01.03.24.jpg

4. To insert this Content holder into a template, webapp, page etc you can use the following:

{module_contentholder, name="Test Holder"}

 

You can also use this method in conjuction with the Visitor Device support.

http://www.businesscatalyst.com/_blog/BC_Blog/post/Introducing_tablet_phone_support_for_si tes/

{module_contentholder, name="home_{system_visitorDeviceClass}"}

Note: This is the only tag currently that will work within the name parameter.