In this article we'll guide you through different ways to set up a Dynamic Asset, which placeholders you can use and how to make the most out of them to insert content from your external source.

For the purpose of this article, we've chosen to use this example file, which contains information about different hotels and their room details.


All hotels, each on their own row

These are the placeholders that we're going to work with to achieve the desired result:

  • ##{{title}}

  • ##{{description}}

  • ##{{imageUrl}}

  • ##{{url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

And this is how it would look when set up while creating an Asset:


All hotels on a separate Row each, with their first review

These are the placeholders that we're going to work with to achieve the desired result:

  • ##{{title}}

  • ##{{description}}

  • ##{{imageUrl}}

  • ##{{url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

  • ##{{reviews.0.comment}} (A placeholder like propertyA.N.propertyB can be used to point to properties inside nested arrays, with the N count starting on 0)

And this is how it would look when set up while creating an Asset:


Four hotels, divided in two Rows with two hotels each

These are the placeholders that we're going to work with to achieve the desired result:

  • ##{{seq:1.title}}

  • ##{{seq:1.description}}

  • ##{{seq:1.url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

  • ##{{seq:1.imageUrl}}

  • ##{{seq:2.title}}

  • ##{{seq:2.description}}

  • ##{{seq:2.url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

  • ##{{seq:2.imageUrl}}

For this Asset, we used sequence placeholders. Read more about placeholder types in this article.

And this is how it would look when set up while creating an Asset:

In the Asset's Loop Settings, we ticked the Use root level items checkbox. Read more about the Loop Settings in the Creating an Asset article.


All hotels with their corresponding reviews, each on their own Row

These are the placeholders that we're going to work with to achieve the desired result:

  • ##{{title}}

  • ##{{description}}

  • ##{{imageUrl}}

  • ##{{url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

  • ##{{seq.rating}} (This placeholder is in its own Row, where we create a sequence of only the review property in our file)

  • ##{{seq.comment}} (A sequence placeholder without a sequence number can be used if there is only one item per Row)

And this is how it would look when set up while creating an Asset:

For the reviews Row, we adjusted the Loop Settings by entering review in the Property input field. Read more about the Loop Settings in the Creating an Asset article.


All hotels with their first two rooms

These are the placeholders that we're going to work with to achieve the desired result:

  • ##{{title}}

  • ##{{description}}

  • ##{{imageUrl}}

  • ##{{url}} (To use this placeholder in the Book Now button, we selected Feed Property as Link type in the Link Settings)

The following placeholders are in a separate Row, where we create a sequence of only the rooms property in our file:

  • ##{{seq:1.name}}

  • ##{{seq:1.prize}}

  • ##{{seq:2.name}}

  • ##{{seq:2.prize}}

For the rooms Row, we adjusted the Loop Settings by entering rooms in the Property input field and 2 under Number of items. Read more about the Loop Settings in the Creating an Asset article.

Did this answer your question?