Adding a related component using Tridion UI / XM

We are currently introducing a new site with support for the new UI / XM (Experience Manager) interface. Currently, although it seems impossible to add a โ€œparagraphโ€ (which is a multi-valued inline diagram) to our components of the โ€œarticleโ€. I assume that such basic functionality will work.

In addition, we have a component that communicates with several other components in the link field for multi-valued components. These individual related components are edited (they are displayed using RenderComponentPresentation() ), but we cannot add new component references to a multi-valued field.

Does anyone have an idea how to make this work?

Yours faithfully

Edit: This will be fixed in 2013 SP1!

+4
source share
3 answers

Adding multi-valued inline schemas is currently not possible in the Tridion Experience Manager user interface. I suggest opening a component in a form to add a paragraph.

If you think SDL is a good idea to add a feature that you miss, you can offer it at http://ideas.sdltridion.com .

+7
source

According to the documentation (password is required, see http://docportal.sdl.com/sdltridion ), you should use the following in your DWT template:

 <!-- TemplateBeginRepeat name="fieldname" --> @@RenderComponentField("fieldname", TemplateRepeatIndex)@@ <!-- TemplateEndRepeat --> 

But this is not so useful for Component Links, because it just displays TCMURI in your template, so you probably want it to become a dynamic link, and then you can use the following in your DWT template:

 <!-- TemplateBeginRepeat name="fieldname" --> <tcdl:ComponentField name="fieldname" index="${TemplateRepeatIndex}"> <a href="#" tridion:href="@@ Field@ @" tridion:type="Component">@@ Field@ @</a> </tcdl:ComponentField> <!-- TemplateEndRepeat --> 

If you need the name of the related component in this link, you can use Dreamweaver Get eXtension (DGX) .

Now you will get the value of all editable fields, and when you edit one of the fields, you will get a green plus button in the upper left corner of the field properties, from where you can add a new value (you will see the delete and move button at the top of the field properties too). field properties of a multi value field in XPM

Please note: if the field of your multi-valued value is initially empty, you need to make sure that there is a tcdl tag that allows XPM to understand that it should show field editing properties there, you can use something like this to do this:

 <!-- TemplateBeginIf cond="CollectionLength('Field.Values') == 0" --> <tcdl:ComponentField name="${Field.Name}"></tcdl:ComponentField> <!-- TemplateEndIf --> 

For more information about inline editing, see.

EDIT:

It seems that I misunderstood the question a bit, because, as Frank observes, unfortunately, XPM does not have the ability to add multi-valued embedded fields. I was tempted to use the following construction, which allows me to edit all fields, but there are no buttons with multiple values โ€‹โ€‹(since this is not supported):

 <!-- TemplateBeginRepeat name="fieldname" --> <tcdl:ComponentField name="fieldname" index="${TemplateRepeatIndex}"> <!-- TemplateBeginRepeat name="Field.embeddableFieldname1" --> @@RenderComponentField(FieldPath+".embeddableFieldname1", TemplateRepeatIndex)@@ - @@RenderComponentField(FieldPath+".embeddableFieldname2", TemplateRepeatIndex)@@ <!-- TemplateEndRepeat --> </tcdl:ComponentField> <!-- TemplateEndRepeat --> 
+3
source

I use this code to visualize the fields of a multi-valued inline paragraph scheme, and it works fine in XPM:

 <!-- TemplateBeginRepeat name="Fields.Paragraph" --> @@RenderComponentField("Fields.Paragraph[${TemplateRepeatIndex}].Body", 0)@@ <!-- TemplateEndRepeat --> 
-1
source

All Articles