Skip navigation

Currently Being Moderated

Named Content Holders

Instead of inseting a content module using it's ID 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 holdes.

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"}

 

It is that easy.

 

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_sites/

 

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

 

Note: This is the only tag currently that will work withing the name paramater.

 
Comments (6)