In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
863 [In-Portal CMS] Template System feature request always 2010-09-12 22:56 2010-09-12 22:57
Dmitry  
 
normal  
active  
open  
 
none  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/601a4153b90af84a
New "less_than" and "greater_than" functionality for IF tag
0
0000863: Add new "less_than" and "greater_than" parameters to IF tag
In-Portal has <inp2:m_if tag, that allows to display template parts based on a condition, e.g.
 

<inp2:m_if check="prefix_TagName">
    show something
</inp2:m_if>


Text "show something" will be visible only, when tag "TagName" of prefix
"prefix" will return *true*.

Also, that <inp2:m_if tag has universal parameter called "equals_to", that allows to compare any tag result to given value list (multiple values can be separated using |, e.g. "*value1|value2|value3*").


Proposed new functionality:

1. add "greater_than" and "less_than" parameters + their processing

2. move that 3 parameters ("greater_than", "less_than" and "equals_to") processing into compiled template code, so we have no to check for their presence during each tag processing.
Issue History
2010-09-12 22:57 Dmitry Description Updated bug_revision_view_page.php?rev_id=569#r569
2010-09-12 22:56 Dmitry New Issue
2010-09-12 22:56 Dmitry Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/601a4153b90af84a
2010-09-12 22:56 Dmitry Change Log Message => New "less_than" and "greater_than" functionality for IF tag

There are no notes attached to this issue.