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=""></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 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. This approach passes the correct unit, product, catalog, or library. The result is the creation of the correct static content URL. If you prefer, you can use the other content link functions.

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>

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.