Pass a parameter to a global content block
Previous article Next articleIn CMS Made Simple you can pass your own parameter to a global content block.
How to use
The regular tag:
{global_content name='SomeName'}
The tag with an extra parameter:
{global_content name='SomeName' foo='bar'}
You can use the parameter in the content like:
GCB Content
The value of the "foo" parameter is {$gcb_params.foo}Just an example how you could use it:
{global_content name='SomeName' float='left'}
{global_content name='SomeName' float='right'}
{global_content name='SomeName' float='right'}
GCB Content
<div class="{$gcb_params.float}" style="float: {$gcb_params.float}"> // CONTENT // </div>Comment Form
ReviewManager
ReviewManager
0 Comments
No comments yet...