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

Change "m_DefaultParam" tag to allow parameters with variable names/values

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.1-B2
    • Component/s: Template System
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      The <inp2:m_DefaultParam/> tag now allows template parameters usage inside it.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      In-Portal has m_DefailtParam tag, which can be used to set template-wide default parameter values (in case if whoever includes that template don't pass any of parameters). Usually this is done like so:

      <inp2:m_DefaultParam param1="value1" param2="value2"/>

      If there is a need to set different default value based on other parameter value it's done like so:

      <inp2:m_SetParam param3="value3"/>
      <inp2:m_DefaultParam par{$param3}am1="value1" param2="val{$param3}ue2"/>

      Actually there is no limit on where to inject other parameter value. However this construct doesn't work because of an error in current implementation of m_DefaultParam tag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: