Content plug-ins are used with the current content item.
- Analytics Data Plug-in
- This plug-in writes information suitable for active site analytics.
- For example: [Plugin:AnalyticsData property="title" css-class="asa.wcm.content_item.title"]
- Copy Text Plug-in
- This plug-in writes text once or multiple times.
- The syntax of the plugin is [Plugin:CopyText text="" count=""
separator="" format="trim | tolower | toupper" escape="xml | json
| none"].
- If List Index Plug-in
- This plug-in writes the enclosed body markup based on counting
where the current item is positioned in the rendering of a Menu, Navigator,
Search, Personalization or Taxonomy component. The plug-in will only
render the body if the current count is between the specified numbers,
subject to the value of 'by'. The first item in the list has count
1. The 'from' and 'to' value can be omitted if no lower or upper bound
is required.
- For example:
- [Plugin:ifListIndex is='2'] will render body
for the second item.
- [Plugin:ifListIndex from='2'] will render body
for all items from the second onwards.
- [Plugin:ifListIndex to='3'] will render body
for all items up to the third.
- [Plugin:ifListIndex from='2' to='8'] will render
body for items from the second to the eighth.
- [Plugin:ifListIndex from='1' by='2'] or [Plugin:ifListIndex
by='odd'] will render body for all odd items.
- [Plugin:ifListIndex from='2' by='2'] or [Plugin:ifListIndex
by='even'] will render body for all even items.
- JavaScript and XML Encode Plug-in
- This plug-in encodes JavaScript or XML.
- For example: [Plugin:jsencode enc="js|xml|jsxml" value="myValue"]
- Ratings Plug-in
- This plug-in provides support for rating options for content item.
- [Plugin:ratings]
- Remote Action Plug-in
- Used to create a URL for a remote authoring action.
- For example: [Plugin:RemoteAction action="edit" useCurrentContext="true"
dialog="true"]
- Tags Plug-in
- This plug-in provides tagging support for content items.
- [Plugin:tags]
- Text Provider Plug-in
- Used to write a value from a text provider.
- The syntax of the plug-in is [Plugin:TextProvider provider=""
key="" defaultValue="" param.1="" param.X=""] where the "provider"
parameter must be set to the name of the text provider and the "key"
parameter to the key that should be retrieved.
- If no provider is set the text provider that is set for the title
of the current content is used.
- The optional parameter "defaultValue" can be used to set a value
that is written in case the text provider does not return a result.
Otherwise nothing is written by this plug-in.
- Placeholders in the text are replaced with the values of all optional
parameters specified in the plug-in tag.
Additional information
These topics contain
additional information for some of these plug-ins.