Page 1 of 1

{tag} {/tag}

Posted: Sat Aug 04, 2007 8:03 am
by Tharo
If there any possibility of just creating a tag-set like this ?

I want to use several complex (in other words, not with just one div layer done) content blocks and i wish to use them like

{box} my content here {/box}

I dont want to use global text blocks to just pass the infomation using the std variable system. Its just shitty to split up all done text into global blocks ... and its not realy usable for me to manage them.

So how can i do it?

Re: {tag} {/tag}

Posted: Mon Aug 06, 2007 10:17 pm
by RarePinda
Tharo wrote: If there any possibility of just creating a tag-set like this ?

I want to use several complex (in other words, not with just one div layer done) content blocks and i wish to use them like

{box} my content here {/box}

I dont want to use global text blocks to just pass the infomation using the std variable system. Its just shitty to split up all done text into global blocks ... and its not realy usable for me to manage them.

So how can i do it?
I've tried to make 2 user-defined tags, box and /box: but when i tried to call them i got this error.

string(121) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '/box' (Smarty_Compiler.class.php, line 590)"

I think you can fix this by not using the /box but something like box_end.

- RarePinda

Re: {tag} {/tag}

Posted: Sat Sep 29, 2007 9:00 pm
by csim
Have you succeeded in creating {tag} {tag_end}? I've just the same thing to do and I want to know if it is possible.
Thanks

Re: {tag} {/tag}

Posted: Sat Sep 29, 2007 9:35 pm
by calguy1000
if you're a programmer, what you want is a smarty block plugin.  there are a few of them in CMS Made simple's plugin directory, and more in the lib/smarty/plugins directory to go by.  their named block.*