Linking to child node and displaying DAMP image from child node
I know this must be simple, but I'm not brilliant with XSLT and I can't figure out how to generate this sort of output using a child node's DAMP image as the link:
<a href="child node where DAMP image is from"><img src="DAMP image from child node"></a>
I can display the DAMP image on the parent node, OR I can link to the child node, but I can't figure out how to do both in the same XSLT..
The ancestor:: axis goes up the "parent" tree - we filter by [@isDoc] to only select Documents (not properties) and then we take the first we run into. From there, we grab the @id attribute.
Linking to child node and displaying DAMP image from child node
I know this must be simple, but I'm not brilliant with XSLT and I can't figure out how to generate this sort of output using a child node's DAMP image as the link:
<a href="child node where DAMP image is from"><img src="DAMP image from child node"></a>
I can display the DAMP image on the parent node, OR I can link to the child node, but I can't figure out how to do both in the same XSLT..
Here's what I've got (link isn't working):
Hi Laura,
The @id you need to send to the NiceUrl() function should be taken from the page that *contains* the DAMP picker, right? Thus:
The ancestor:: axis goes up the "parent" tree - we filter by [@isDoc] to only select Documents (not properties) and then we take the first we run into. From there, we grab the @id attribute.
/Chriztian
Thank you so much Chriztian!
is working on a reply...