Showing posts with label embedded fields. Show all posts
Showing posts with label embedded fields. Show all posts

Thursday, 8 March 2012

Manipulating (embedded!) fields from a Custom URL resource


As of SDL Tridion 2011, we have a new API for manipulating fields within Web resources referenced by Custom URLs. You can find some basic examples on live documentation.

I got a question by a customer on how exactly to deal with embedded fields. I played around a little bit with it and I thought… let‘s share the result!  :) It is actually pretty simple, we deal with embedded fields in the same way as we do for the rest of fields.

My use case

Custom URL associated to field Paragraphs:
·         Embedded schema Field, that contains two inner fields
o   Heading
o   Text
·         Multivalue

When we click on the Paragraphs field description, we will set default values to both heading and text as an example. This is the expected result: