-
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
-
External issue URL:
-
External issue ID:674
-
Copy Issue Key:
-
Patch Instructions:
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.
- mentioned in
-
Page Loading...