OpenWGA 7.10 - WebTML reference
WebTML tags » [All condition tags]<tml:[All condition tags] portletmode ="mode [, mode ...]">
Purpose:
Tests if the current WebTML portlet is in one of the given modes
Description:
Specify a row of comma separated modes to let this attribute evaluate to true if the current WebTML portlet (in whose design the current WebTML code runs) is in one if this modes.
Value(s):
Portlet modes, comma separated
Examples:
This attribute comes handy if some code fragments should be executed on multiple portlet modes, like the "save" button in this example that is needed when creating new and when editing existing documents:
<tml:case portletmode="edit,new">
<tml:button clickaction="::save">Save the data</tml:button>
</tml:case>