user1949001
user1949001

Reputation: 215

Tridion ComponentLink not resolving

We have a single Componentlink out of many such ComponentLinks on a page that is not resolving correctly. There are tons of similar Componentlinks on the page and they also resolve correctly except this one. We have tried publishing the component referred to by the link , the page that the component is on, the page where this link does not appear, separately with no errors but this one link does not resolve to an anchor tag of the form

Here is what we see in Template Builder and the rendered page

Partial Output of Template Builder

<p class="break">
    <a href="/WebUI/Editors/CME/Views/Popups/Preview/Preview.aspx#id=tcm:111-8211" >
        Learn more <span class="arrow-right"> </span>
    </a>
</p>

Partial Rendered Page output

<p class="break">
    <tridion:ComponentLink pageURI="tcm:111-3943-64" componentURI="tcm:111-8211" 
        templateURI="tcm:0-0-0" addAnchor="false" 
        linkText="Learn more &lt;span class=&#34;arrow-right&#34;&gt; &lt;/span&gt;" 
        linkAttributes="" textOnFail="true"/>
</p>

Upvotes: 2

Views: 541

Answers (2)

Praveen Gullapalli
Praveen Gullapalli

Reputation: 33

Looks like you have a failure to only one component in a page, that should behave like an anchor? Then why do I see addAnchor="false" in your output, Can you make it true in the file and try?

Also Can you make sure you followed the simple steps mentioned here ? http://yatb.mitza.net/2012/03/component-link-samples.html

Upvotes: 0

Chris Summers
Chris Summers

Reputation: 10163

Your rendered component link in the page looks pretty normal. Try doing a Where Used on the component with URI tcm:111-8211. Check if it is used on a page other than tcm:111-3943-64. If it is on some other pages, check the priority of the Component Templates. At least one of them must be set to a priority other than Never Link.

Upvotes: 2

Related Questions