But the select for the for-each won't work. I have added the related link datatype as property with a alias 'link' for the document type. Also added the macro for the xslt to the doucment type template.
And there has been selected some links so it's not in fact empty? If so...have you tried to see if it's solved by refreshing the XML cache by going to the "Content" node, right click and select "Republish entire site" ?
Otherwise what happens if you try to fetch the XML by writing it out in a <textarea> like this
Have you tried to refresh the XML cache by republishing the entire site to make sure it's not because the content is missing from the umbraco.config file?
You could also try to open this file, which is found in the App_Data folder to see if the links you have entered can be found in it. If not a republish should do the trick.
Get related links to work with Umbraco 4.0.2.2
We are using Nibble packages for Related Links datatype for Umbraco 4.0.2.2.
But the select for the for-each won't work. I have added the related link datatype as property with a alias 'link' for the document type. Also added the macro for the xslt to the doucment type template.
The code will only generate:
Any ideas?
Hi
And there has been selected some links so it's not in fact empty? If so...have you tried to see if it's solved by refreshing the XML cache by going to the "Content" node, right click and select "Republish entire site" ?
Otherwise what happens if you try to fetch the XML by writing it out in a <textarea> like this
<textarea>
<xsl:copy-of select="relatedLinks.library:getRelatedLinks($currentPage/data [@alias = 'link'])/links/link" />
</textarea>
Hope this helps.
/Jan
I have made some test on my own to see if it finds links:
Both case it prints empty:
I also tried with textarea and got this result:
Plus the rest of the ending code from the page, footer etc.
Have you tried to refresh the XML cache by republishing the entire site to make sure it's not because the content is missing from the umbraco.config file?
You could also try to open this file, which is found in the App_Data folder to see if the links you have entered can be found in it. If not a republish should do the trick.
Hope this helps.
/Jan
Great tips, going to try it out tomorrow. Thanks!
is working on a reply...