content:assignPropertyBinding

A tag which lets you make a visible representation of the assign property editing found in the structure tool on component property bindings. Easier for the users and can be used on live sites as well.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

propertyName

true

 

String

The property name we want to assign by the link.

createNew

true

 

String

Sets if the link should invoke the create wizard first and then assigns the binding.

html

true

 

String

The html you want the user to click on to get the editing form.

showDecorated

false

true

String

This property lets you decide how to return to the page after the wizard – decorated or not.

showInPublishedMode

false

false

String

This property lets you show the edit-link even on the published site.

hideComponentPropertiesOnLoad

false

true

String

This property lets you state that you do / do not wish the component properties div to be shown after the wizard finishes.

extraParameters

false

false

String

This property lets you send extra parameters to the wizard – not normally used.

 

ID-result variable contains:
The html-string needed to perform the action.

Examples

The following example creates two links. One that opens the binding dialog for the property "Article". The second opens the content creation wizard so the user can create a new content which is then assigned to the property "Article".

<content:assignPropertyBinding id="assignPropertyBindingHTML" propertyName="Article" html="Choose article"/>
<content:assignPropertyBinding id="assignPropertyBindingNewHTML" propertyName="Article" createNew="true" html="Create new article"/>
<c:out value="${assignPropertyBindingHTML}" escapeXml="false"/> |
<c:out value="${assignPropertyBindingNewHTML}" escapeXml="false"/>



comments powered by Disqus