Modify the URLs of Link and Binary Content Items

The Widget Framework provides two decorators that you can use to modify the URLs of certain types of content item.

Clicking on a link to a content item in an Escenic web site will normally result in the content item itself being displayed, and this is normally the desired result. In certain cases, however, it is not the desired result:

  • In the case of a "link" content item that just holds a link to some external URL, for example, you would most probably want the click to lead straight to the external URL rather than to an intermediate page containing nothing but another link.

  • Similarly, for a "binary" content item that just holds a reference to a PDF document, for example, you would most probably want the user's click to lead directly to the PDF document.

That is what these two decorators are for. To use them you have to add ui:decorator elements to the appropriate content type definitions in your publication's content-type resource, as described in the following sections.

For more information about decorators in Escenic, see Decorators, in the Escenic Content Engine Advanced Developer Guide.