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

Tag "st_CachedMenu" sets incorrect "template" parameter to menu elements

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0-B1
    • Component/s: Front End
    • Labels:
      None

      Description

      Below is the code, that could be to display website menu top level:

      <inp2:m_DefineElement name="menu_element">
      <a href="<inp2:m_Link template='$template' m_cat_id='$cat_id' use_section='$use_section'/>">
      <inp2:m_Param name="title"/>
      </a>
      </inp2:m_DefineElement>

      <inp2:st_CachedMenu render_as="menu_element" category_id="1"/>

      This code works before and after In-Portal 5.1.0 version. Problem arises, when developer tries to use "[b]template[/b]" parameter directly without passing it to m_Link tag.

      For example here the result of [b]<inp2:m_Param name="template"/>[/b] tag before & after In-Portal 5.1.0 release:
      before 5.1.0 release: "[b]path/to/template[/b]"
      after 5.1.0 release: "[b]id:434[/b]" (434 is ID of a section, that is displayed in menu)

      Attached patch restored pre 5.1.0 behavior related to "template" parameter value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: