11 How do I create vanity URLS for assets?

The URL section of an asset's form contains the URL field, which you use to define one or more vanity URLs for the asset.

To create a vanity URL for an asset:

  1. From the Contributor interface, select the site containing the asset for which you want to create a vanity URL.
  2. Find and open the asset for which you want to create a vanity URL. Do one of the following:
    • Search for and open the asset for which you want to create a vanity URL.

    • If you previously bookmarked the asset, open it from the Bookmarks node in the My Work tree.

    A tab opens displaying the Inspect view of the asset (in either Form View or Web View).

  3. Access the asset's Edit view in Form View:
    • If the asset opens in Web View, switch to Form View. In the asset's toolbar, click the Mode switch.

    • In the asset's toolbar, click the Edit icon.

      The tab shows the Edit view of the asset in Form View.

  4. In the form section selector, select URL.
    The URL section of the form opens.
  5. Create a new vanity URL for the asset by filling in the following fields and clicking Add:
    • URL: Enter a path for the vanity URL you are creating for the asset. For example, skiing/article.

      Note:

      You must create a unique path for the vanity URL. WebCenter Sites does not allow different assets to share the same vanity URL path.

    • Host: This field is shown only if your administrator or developers configured a root (base) URL for assets of this type in the Admin interface. Use this field to select the root (base) URL.

    • Device Group: If your site is configured to support device groups, select a device group to designate this vanity URL as the URL to use when a visitor accesses the asset from a mobile device associated with the selected device group.

    • Template: Select the layout with which to render the asset on the website.

      If your developers have defined arguments for the template you selected, those arguments are displayed to the right of the Template field. Select or enter values for the arguments.

    • Wrapper: This field is shown only if your site has a wrapper. Select the wrapper for your site.

    The vanity URL is added to the table at the bottom of the form.

  6. Save the asset by doing one of the following:
    • In the asset's toolbar, click the Save icon.

    • In the menu bar, select Content, then select Save.

  7. Preview the asset in a new window. In the menu bar, select View, then select Preview in New Window.

    If the template that is rendering the preview of the asset matches the template selected for the vanity URL, the browser's address bar shows that the vanity URL you created is rendering the preview of the asset.

  8. Approve the asset for publishing.

    When the asset is published, the vanity URL that you defined for that asset is used to render it on the website.