tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/297-cross-site-linking-with-data-definition-page-selectorCascade CMS: Discussion 2018-10-18T20:36:09Ztag:help-archives.hannonhill.com,2010-02-09:Comment/47878792011-01-18T05:13:49Z2011-01-18T05:13:49ZCross-Site Linking with Data Definition Page Selector<div><p>I've looked through the help forum and KB for this and couldn't
find an answer. We are attempting to link from one site to another
using a page selector in a DD. The XSL that reads the selected from
the DD is:</p>
<p>'<xsl:value-of select="link-page/path"/>'</p>
<p>However, when linking to another site, the link that is
publishing out is:</p>
<p>/index.html</p>
<p>So it's not picking up the site URL at all. I see in the KB
where you can link to something like:</p>
<p>'site:///path/to/asset/in/site'</p>
<p>But what if we can't hard-code the "sitename" value since we
don't know which of the sites they'll choose to link to? My bottom
line question is, how do we cross-site link using a page selector?
Thanks.</p></div>jklingmantag:help-archives.hannonhill.com,2010-02-09:Comment/47878792011-01-18T14:30:12Z2011-01-18T14:30:12ZCross-Site Linking with Data Definition Page Selector<div><p>Hey there,</p>
<p>If you take a look at the XML produced after you select a Page
with a Page chooser, you'll notice that it contains a
<code><link></code> element in addition to
<code><path></code>. For example:</p>
<pre>
<code><system-data-structure>
<page>
<content />
<path>/index</path>
<link>site://example.edu/index</link>
<site>example.edu</site>
<name>index</name>
<display-name>Welcome</display-name>
<title>Content Management for Higher Education</title>
<summary>Managing a college or university site is difficult.
How much more effective could your site be with the proper
solution?</summary>
<author>Hannon Hill Corporation</author>
</page>
</system-data-structure></code>
</pre>
<p>So, rather than using the path element to construct the links in
your Format, try using the link element as that contains the
cross-site link which includes the Site URL.</p>
<p>Let me know if this helps.</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/47878792011-01-18T21:52:22Z2011-01-18T21:52:22ZCross-Site Linking with Data Definition Page Selector<div><p>Wow, I should have known that. I mean, I knew that. I'm glad
that I had you go through this exercise...I wanted others to have a
good point of reference if they encountered the same issue. :)</p>
<p>Thanks Tim.</p></div>jklingman