Ability to check element definition in tag

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Jan 31, 2012, 11:06:46 AM1/31/12
to In-Portal Development
In-Portal's template engine's key feature is block definitions. You can create HTML code block using m_DefineElement tag and then use it later using m_RenderElement block. It's like moving widely used PHP code into a function.

However it has no tag for checking if a particular element was defined. Now it is.


Ready for testing.
check_element_definition_from_tag_feat.patch

Dmitry A.

unread,
Jan 31, 2012, 1:29:50 PM1/31/12
to in-por...@googlegroups.com
Great functionality - I personally find it useful alot.

Use Example:


<inp2:m_if check="m_ElementDefined" name="inp_edit_box">

So something here

</inp2:m_if>

Phil

unread,
Jan 31, 2012, 2:06:10 PM1/31/12
to in-por...@googlegroups.com
Great idea Alex, and thanks Dmitry for the example, useful too :)


Envoyé avec Sparrow

Reply all
Reply to author
Forward
0 new messages