{tag} {/tag}

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
Tharo

{tag} {/tag}

Post 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?
RarePinda

Re: {tag} {/tag}

Post 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
csim

Re: {tag} {/tag}

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: {tag} {/tag}

Post 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.*
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Tips and Tricks”