Uploaded image for project: 'In-Link'
  1. In-Link
  2. MINL-16

Use "m_include" tag for including link detail template

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.1-RC1
    • Fix Version/s: 5.2.1
    • Component/s: Links
    • Labels:
      None

      Description

      Each In-Portal module offers 2 basic templates for the items that can be created within that module:

      list template - lists all items within a category
      detail template - shows details about individual item

      The In-Link module has improved that system by allowing an end user to specify (in the CustomTemplate field in database) a per-item detail template override. Technically this is done by placing DisplayDetailTemplate tag into the actual detail template. Then tag will decide whatever the default or the user override template needs to be shown.

      Problem is that in that tag, we're processing given template name not via <inp2:m_Include template="..."/> tag, but via <inp2:m_RenderElement name="..."/> tag. In retrospective it turns out that this was very bad idea, when the include template as another m_Include/m_RenderElement tags on it.

      Here is a fix: replace ParseBlock with IncludeTemplate on the link_tag_processor.php file, in the DisplayDetailTemplate tag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                erik Erik Snarski [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: