Documentation Index

Fetch the complete documentation index at: https://www.civicplus.help/llms.txt

Use this file to discover all available pages before exploring further.

Add Preview URLs to a Content Type

Prev Next

This article will show you how to add Preview URLs for Content Types. Preview URLs allow readers to preview content as an end-user would see it, such as on a Web Evolve website.

Who can use this feature?

Owner | Developer | Publisher | Author (submit for review)  

Instructions

  1. Sign in to the HCMS

  2. Navigate to Content Types and select the Content Type you want to add Preview URLs toContent Types section showing various types including a highlighted Department entry.

  3. Click the More tab The More tab on the content type field.

  4. Configure your Preview URLs Preview URLs section with fields for web or mobile and URL variables.

    • Web or Mobile: Indicate whether web or mobile URL

    • URL with variables: Add the URL with placeholders such as ${id} or ${data.slug}

  5. Click + to add as many Preview URLs as necessaryPreview URLs section with fields for adding web links and a save button.

  6. Click SaveThe Save button on the Preview URLs page.

  7. In the dialog, you can define preview URLs as you want, such as:

    • The URL to the normal website.

    • The URL to a dedicated mobile website (just as an example).

      You can use a placeholder with the JavaScript interpolation syntax, such as:

      • ${id} of the content.

      • ${data.slug}: Slug field (if not localized).

      • ${data.slug.iv}: Slug field, alternative syntax.

      • ${data.title.en}: Title in English

      • ${data.title.en-US}: Title in American English

      • ${version}: Version of the content item.

  8. Follow these instructions to see how to preview a linked URL