Page 1 of 1

Eliminate the > problem

Posted: Mon Jan 12, 2009 4:28 pm
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

Re: Eliminate the > problem

Posted: Mon Jan 12, 2009 4:45 pm
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

Re: Eliminate the > problem

Posted: Mon Jan 12, 2009 4:50 pm
by kendo451
Your method is better.  Plus my method still doesn't solve the problem of object pointers getting converted to ->