Hide component link in Dreamweaver Template
Asked Answered
K

1

7

Dreamweaver template is using the following code to generate the component link. Can this be set up in a way to hide the actual text if the component link has not got a landing page?

  <a tridion:href="@@Component.ID@@">@@Component.Fields.Title@@</a>
Kylynn answered 31/12, 2012 at 7:26 Comment(0)
M
9

You can use the attribute: tridion:textonfail="False" to hide text if the link cannot be resolved (no landing page). Default value is True

Moguel answered 31/12, 2012 at 8:36 Comment(1)
Here is a link to additional documentation on how to render dynamic links (login required): sdllivecontent.sdl.com/LiveContent/content/en-US/…Bonnette

© 2022 - 2024 — McMap. All rights reserved.