Editing fields inline
To enable inline editing on specific fields, you typically mark the fields for editing in the Component Template using the RenderComponentField (field, index) function in a Dreamweaver Template Building Block.
When using the Dreamweaver Mediator, you can normally use the RenderComponentField(field, index) function in the Component Template where:
field-
indicates the field of the Component in the Component Presentation being rendered using a source expression relative to this Component. For example,
Fields.Address.Streetrefers to the fieldStreetin the Embedded SchemaAddressof the component content index- indicates the value-index of a multivalue field, starting at 0. Set this value to 0 if the field is a single-value field.
The following is an example of Dreamweaver syntax for marking Component fields:
${RenderComponentField("Fields.SomeTitle", 0)}
<!-- TemplateBeginRepeat name="Fields.paragraphs" -->
${RenderComponentField("Fields.paragraphs", TemplateRepeatIndex)}
<!-- TemplateEndRepeat -->
If you are not using the Dreamweaver Mediator, the following is an example of TCDL tag syntax for marking Component fields:
<tcdl:ComponentField name="Addresses" index="2">
ValueOfField
</tcdl:ComponentField>
where:
name- refers to a source expression on the Component of the Component Presentation.
index-
(optional) refers to the value index of a multivalue field (zero-based). In this example, you can also leave this attribute out and set
nametoAddresses[2]. Ifnameis a single-value field, you can just setnameto the field name and omitindexaltogether. ValueOfField- is the value of the field to be added as element value (this is removed by the Default Finish Action Template Building lock running at the end of a Component Template.)