Page 1 of 1

[Solved] User defined smarty page elements?

Posted: Fri Sep 02, 2011 1:30 pm
by yngwie
I am new to CMSMS so bear with me.

Is there something like user defined tags but for smarty content rather than php? I would like the user to be able to define and edit page elements in smarty language and insert them into various pages using tags. Is there a simple way to do this? Could I use the Layout->Templates for this and if so, how do I include such a template into a page using a tag?

Re: User defined smarty page elements?

Posted: Sat Sep 03, 2011 10:50 am
by uniqu3
There are Globabl Content Blocks for that.

Re: User defined smarty page elements?

Posted: Sat Sep 03, 2011 1:06 pm
by yngwie
Ah, perfect! Exactly what I was looking for.

I also found I can get the GCB programmatically with $smarty->fetch('globalcontent:name') so this will be very useful for me.

Thanks!