URL expressions

Each Content Fragment Model can have a preview URL set. The Preview URL can be parameterized per Content Fragment using the URL expressions listed in the table below. Multiple URL expressions can be used in a single preview URL.

URL ExpressionValue
Content Fragment path${contentFragment.path}/content/dam/wknd-shared/en/adventures/surf-camp-bali/surf-camp-bali
Content Fragment ID${contentFragment.id}12c34567-8901-2aa3-45b6-d7890aa1c23c
Content Fragment variation${contentFragment.variation}main
Content Fragment Model path${contentFragment.model.path}/conf/wknd-shared/settings/dam/cfm/models/adventure
Content Fragment Model name${contentFragment.model.name}adventure

Example preview URLs:

  • A preview URL on the Adventure model could look like https://preview.app.wknd.site/adventure${contentFragment.path} that resolves to https://preview.app.wknd.site/adventure/content/dam/wknd-shared/en/adventures/surf-camp-bali/surf-camp-bali
  • A preview URL on the Article model could look like https://preview.news.wknd.site/${contentFragment.model.name}/${contentFragment.id}.html?variation=${contentFragment.variation} the resolves https://preview.news.wknd.site/article/99c34317-1901-2ab3-35b6-d7890aa1c23c.html?variation=main

In-app preview

Any Content Fragment using the configured Content Fragment Model, has a Preview button. The Preview button opens the Content Fragment Model’s preview URL and injects the open Content Fragment’s values into the URL expressions.

Preview button

Perform a hard refresh (clearing the browser’s local cache) when previewing Content Fragment changes in the app.