Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can I add a link to doctype?
I have a doctype called "ProjectGallery-Technology" and want to link to that.
Here's what I've got so far, the link to the parent node is simple, but the link to the Technology node which is at the same level as the parent node is difficult:
<xsl:variable name="documentTypeAlias" select="string('ProjectGallery-Technology')"/>
<a href="{umbraco.library:NiceUrl($currentPage/parent::*/@id)}" title="{$currentPage/parent::*/@nodeName}"> <xsl:value-of select="$currentPage/parent::*/@nodeName"/></a>
<xsl:if test="$currentPage/displayInTechnology != '1'"> <a href="#">Technology</a></xsl:if>
Any ideas?
Cheers,JV
Hi JV,
OK, not 100% sure what you are trying to achieve, so this is a long shot...
<a href="{umbraco.library:NiceUrl($currentPage/../*[@isDoc and name() = $documentTypeAlias]/@id)}">Technology</a>
Cheers, Lee.
Thanks Lee,
I got it to work with the following, thanks for your help getting me on the right path
<a title="Technology" href="{umbraco.library:NiceUrl($currentPage/../../*[@isDoc and name() != 'ProjectGallery' and name() != 'ProjectGallery-Government']/@id)}">
Cheers, JV
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Link to doctype
How can I add a link to doctype?
I have a doctype called "ProjectGallery-Technology" and want to link to that.
Here's what I've got so far, the link to the parent node is simple, but the link to the Technology node which is at the same level as the parent node is difficult:
Any ideas?
Cheers,
JV
Hi JV,
OK, not 100% sure what you are trying to achieve, so this is a long shot...
Cheers, Lee.
Thanks Lee,
I got it to work with the following, thanks for your help getting me on the right path
Cheers, JV
is working on a reply...