tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/6082-site-pathCascade CMS: Discussion 2015-06-03T15:29:34Ztag:help-archives.hannonhill.com,2010-02-09:Comment/370204222015-06-02T19:11:08Z2015-06-02T19:11:08ZSite Path<div><p>Hi Ray, <code>href</code> is what we consider a "recognized"
link-containing attribute so it is automatically re-written on
render. In fact, both of those values resolve to
<code>/assets/images/mypic.jpg</code>; it's just that the page
renderer is smart enough to recognize the one inside of an
<code>href</code> as a link to another asset.</p>
<p>For the second one, you'll need to wrap your URL in Cascade's
<a href="http://www.hannonhill.com/kb/Linking/#linking-from-files-and-other-non-recognized-attributes">
<code>[system-asset]</code> pseudo-tags</a>.</p>
<p>This would look like:</p>
<pre>
<code><xsl:attribute name="style">background-image: url('[system-asset]<xsl:value-of select="$imagepath"/>[/system-asset]')</xsl:attribute></code>
</pre>
<p>Give that a try and let us know if that does the trick.</p>
<p>Also be sure to read through the <a href="http://www.hannonhill.com/kb/Linking">linking documentation</a>
for a comprehensive list of how to link to assets in various
contexts.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Bradley Wagnertag:help-archives.hannonhill.com,2010-02-09:Comment/370204222015-06-03T15:23:00Z2015-06-03T15:23:01ZSite Path<div><p>Thanks alot for the quick response. It worked.<br>
Cheers</p></div>Raytag:help-archives.hannonhill.com,2010-02-09:Comment/370204222015-06-03T15:29:33Z2015-06-03T15:29:33ZSite Path<div><p>Great, Ray! Glad to hear it. I'm going to go ahead and close
this discussion for now.</p></div>Bradley Wagner