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

Add "block_no_data" parameter for m_IfDataExists tag

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.3-B1
    • Fix Version/s: 5.1.1-B1
    • Component/s: Template System
    • Labels:
      None

      Description

      I propose to add "block_no_data" parameter for m_IfDataExists tag. Will work the same as for m_RenderElement, so this two will work the same, but less code will be required:

      COMMON PART:

      <inp2:m_DefineElement name="sample_element">
      <inp2:Field name="Name"/>
      </inp2:m_DefineElement>

      <inp2:m_DefineElement name="no_data">
      no data
      </inp2:m_DefineElement>

      OLD CASE:
      <inp2:m_RenderElement name="sample_content" data_exists="1" block_no_data="no_data"/>

      NEW CASE:
      <inp2:m_IfDataExists block_no_data="no_data">
      <inp2:Field name="Name"/>
      </inp2:m_IfDataExists>

      At the end we have no need to create temporary block to use for data presence check.

        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: