matching id further up the tree on a matched template
This is an open discussion with 2 replies, filed under XSLT.
Search
There shouldn't be any single quotes in the predicate condition, except you want to test for a static string.
I wan the integer so If I remove the single quotes will I get the value of $current-page-id
?
Thanks @klaftertief it worked great! now for multilingual search.. :)
Create an account or sign in to comment.
Hey ho.. it's been a while since i've delved into matching id's on datasources so wanted a little advice please:
I have a datasource which is using the oembed field and I'm matching on the thumbnail element.. which is outputting correctly. But now I want to match the id of the entry further up the tree as I am in need of the title handle to use in a list of entries.
How would I make the number "47" in the snippet below be dynamic.. I.e match every entry id to gain it's title and handle nodes? I thought
'current()/@id'
was it but not 100% here:Thanks for reading.
Also, this doesn't seem to work.. what am I doing wrong in this syhtax?
It's a multilanguage site I'm trying to match categories to current page.