Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-696

Add new "less_than" and "greater_than" parameters to IF tag

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Template System
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: