Eliminate the > problem

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

Eliminate the > problem

Post by kendo451 »

If you use {if something > something_else} tags in your content blocks, the WYSIWYG editor will convert the > symbol to > which, will break your tags.  I know not to hit apply while the WYSIWYG is checked, but other content editors can't be relied upon to remember that.

Here is an very simple solution to this problem.

Instead of > >= y  becomes x gt y
x >= y becomes x gte y

You can find the full list of text alternates here:

http://www.smarty.net/manual/en/language.function.if.php
JeremyBASS

Re: Eliminate the > problem

Post by JeremyBASS »

Good point there kendo451 .... Also here is another simple solution too, As I work with users making edits all the time.. and they love to get crazy on it, I can not put much of anything in the pages more then just a tag or  GCB... so


If it's not just a tag call it goes in a GCB/UDT and that is called... this makes it easier for my clients...

just another way of many....

cheers
jeremyBass
kendo451

Re: Eliminate the > problem

Post by kendo451 »

Your method is better.  Plus my method still doesn't solve the problem of object pointers getting converted to ->
Post Reply

Return to “Tips and Tricks”