Creating Content Asset Links

You can create links to other sites or content assets. See Content Assets.
  1. Decide if you want to link to:
    • Another site
    • Static content in your site - can be an image, product page or article
    • Dynamic content in your site - is content that is determined when the link is clicked. For example, if you want to link to a set of search results, you need to create a link to a pipeline that performs the search and returns the search results. Developers for your site can tell you the name and parameters of pipelines you can use.
  2. Determine the type of link you need to create.
  3. Open your browser and look at the URL of the page or image you want to link to.
    • If your URL looks like a URL outside your domain (www.otherstore.com), you should link to another site's domain.
    • If your URL looks like a category page or search result, you should use the Product or Category page URL hyperlink feature.
    • If your URL looks like an image, product or content asset, you should link to a static content asset.
  4. When creating or editing a hyperlink within a content asset, select one of these link types:
    • URL
    • Product detail page URL
    • Category page URL
    • Content page URL
    • Link to anchor in the text
    • E-Mail

    When you edit a hyperlink in the HTML editor using the Link editor, the Link editor doesn't use the link value you enter to replace the hyperlink text. The link text only changes when changing the:

    • Product SKU of a product detail page URL: the link text is changed to the display name of the product if the product exists for the SKU or is set to the value the user entered.
    • Category ID of a catalog category page URL: the link text is changed to the display name of the catalog category, if a catalog category exists for the ID or is set to the value the user entered.
    • Content Asset ID of a content page URL: the link text is changed to the display name of the content asset, if a content asset exists for the given ID or is set to the value the user entered.
    • Search Phrase of a keyword search URL: the link text is changed to the new search phrase.
    • Protocol or the URL of a normal URL and the link text was equal to the previous protocol plus the URL: the link text is changed to new protocol plus the new URL.
  5. For Product, Category, and Content page URLs, enter a product SKU, category ID (of a category in the site catalog) or content asset ID (of an asset in the site library) respectively, and the system generates the appropriate URL. If you are creating a new hyperlink, the link text defaults to the display name of the product, category or content asset in the currently selected locale. This is from the HTML view.
Content asset links for images are usually to folders in your image library. If you want to dynamically create an absolute URL for an image in a content asset link that includes the full path to the image, you can't do this in the content asset editor. Instead, you must either post-process the markup of your assets by using placeholders such as #hostname#, which are replaced with the correct value programmatically before outputting the markup or hard code the full image URLs from production into your asset. This is usually only a consideration if you are including content assets in emails.