In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000674 [In-Portal CMS] Template System bug report N/A 2010-03-30 04:54 2010-11-30 12:48
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000674: Add "block_no_data" parameter for m_IfDataExists tag
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.
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker