Linking to Another Site URL

You can include another site URL in your content asset, as you would for any HTML page.

This example links to the Salesforce B2C Commerce homepage.

<a title="Visit the B2C Commerce Homepage" href="http://www.demandware.com/">www.demandware.com</a>

Linking to a Pipeline

You can link to any pipeline using the $url()$, $httpUrl()$, $httpsUrl()$, or $include()$ content link functions. You can also link to the SiteGenesis Link pipeline using the $link$ function.

Each pipeline requires different information to be passed to it. You specify this information in the link.

In this example, you are linking to the link pipeline product subpipeline and sending it a product id.

<a href="$link-product:pid=S1917353$">Microsoft Xbox - Game console</a>

To change this link to link to a different product, change the value for the pid argument:

<a href="$link-product:pid=S2364458$">Nikon UR E17 - Lens adapter</a>

Linking to Static Content

Static content includes products, content assets, images, and email links.

The $staticlink$ functionality is the best way to create a URL to a static file in a library or catalog, because it passes the correct unit, product, catalog or library, resulting in the creation of the correct static content URL. However, you can use the other content link functions if you prefer.

Product Link Example

<a href="$link-product:pid=S1917353$">Microsoft Xbox - Game console</a>

Content Asset Link Example

<a href="$link-page:cid=ABOUT_US$" title="Read more about us"> <span>About Us</span></a><span class="divider">|</span></a>

Image Link Example

<img height="356" width="705" src="demo/content/homepage_705_356_flatpanel.gif?$staticlink$" alt="Flat Panel Promotion" />

Email Link Example

<a href="mailto:[email protected]" title="Contact Us via EMail">[email protected]</a>

Related Links

Creating Content Asset Links

Content Asset Link Examples