PTConditionals Tags
Tag iscurrcommpage


This is a conditional tag used to output HTML and Adaptive Tags when on a specified Community Page. This tag does not do anything when not on a Community page. Specify a page by passing in the page Id or name. The page Id is specified either by directly passing the id value in the 'id' attribute or passing in the name of a tag variable with a list of ids. Comparison against Page name will check if the current Page name contains the passed in value. Exact match is done by using the begin of line and end of line markers.In the case when both ids and name is specified the tag body is displayed if one (or more) of the checks pass. Nest two or more tags to perform checks where both id and name need to match.

Example:
<pt:ptcond.iscurrcommpage pt:id="350">
You are on a Page with id 350
</pt:ptcond.iscurrcommpage>
<pt:ptcond.iscurrcommpage pt:name="^Comm Page^">
You are on a Community Page with the exact name 'Comm Page'
</pt:ptcond.iscurrcommpage>
<pt:ptcond.iscurrcommpage pt:name="^Comm Page">
You are on Community Page with a name starting with 'Comm Page'
</pt:ptcond.iscurrcommpage>
<pt:ptcond.iscurrcommpage pt:name="^Comm Page">
 <pt:ptcond.iscurrcommpage pt:id="350">
You are on a Community Page with id 350 and name starting with 'Comm Page'</pt:ptcond.iscurrcommpage>
</pt:ptcond.iscurrpage>


Tag Information
Tag Nameiscurrcommpage

Attributes
NameTypeRequiredDefault ValueDescription
idintfalse-1Community Page id to display the tag body in.
namestringfalsenullPage name. The '^' character is used as begin of string marker when placed in the beginning of the string and end of string at the end.
iddatastringfalsenullId of data tag variable with a list of Page ids to display the tag body in.
datascopestringfalseportlet requestThe tag scope of the iddata tag variable if it is not in the portlet request scope.


Copyright 2005 Plumtree Software, Inc.