I am using umbraco 4.7.0. I want to use related links data type(which is by default available in this version), so added in doucment type as one of the properties.
while creating xslt file, after giving file name it should automatically add xml code for related links. But it is not doing so. Can anybody help me to solve this. What is missing? is any file mission? or any settings need to be done?
When you create the XSLT-file for this task, I'm pretty sure that you can select a build-in xslt template from the dropdown called something like "Related links". Is this the XSLT you are working with? If not could you maybe try out that code to see if it fits your needs :)
Hmm...that sounds weird. I'll see if I can find the code for you then. But it sure does sound weird that the code is not being generated. Is it only the "Related links" predefined template that does not work, or is there a problem on the other ones as well?
Do you have a file \umbraco\xslt\templates\RelatedLinks.xslt? It would be strange if it were there but not working the same way as the other templates...
yes, i have this file. And now I got one clue that it was not generating code for the file name in which '&' character appears. My file name was Q&ARelatedLinks. can anybody tell me that is that this '&' makes different in other things also? As in my template, Tab functionality also doesnot work which is having '&' character in tabs caption. Also, if I want to use this character as it is what can I do?
Sounds very likely to be a filename problem - when you name an XSLT file in Umbraco, a physical file is generated which will be susceptible to the limitations of the underlying filesystem. Of course, we can agree that Umbraco should handle this gracefully and either flag the name as invalid, or apply a clever "fix" (like using "and" in case of an ampersand, etc.) to the filename and maybe keep the macro name intact?
In any case, you could file a bug report on umbraco.codeplex.com
creating xslt for related links data type
I am using umbraco 4.7.0. I want to use related links data type(which is by default available in this version), so added in doucment type as one of the properties.
while creating xslt file, after giving file name it should automatically add xml code for related links. But it is not doing so. Can anybody help me to solve this. What is missing? is any file mission? or any settings need to be done?
Hi
When you create the XSLT-file for this task, I'm pretty sure that you can select a build-in xslt template from the dropdown called something like "Related links". Is this the XSLT you are working with? If not could you maybe try out that code to see if it fits your needs :)
/Kim A
yes, i am using build-in xslt template. but the code which should come automatically is not getting generated.
Hmm...that sounds weird. I'll see if I can find the code for you then. But it sure does sound weird that the code is not being generated. Is it only the "Related links" predefined template that does not work, or is there a problem on the other ones as well?
/Kim A
I think this is what you're after? (I've copied it from \umbraco\xslt\templates\, where you should have a dozen or so xslt files.)
Problem is only with 'Related Links' xslt.
Thank you for the code. But actually i want to figure out that why code is automatically not appearing. Is something got deleted or missing?
Do you have a file \umbraco\xslt\templates\RelatedLinks.xslt? It would be strange if it were there but not working the same way as the other templates...
yes, i have this file. And now I got one clue that it was not generating code for the file name in which '&' character appears. My file name was Q&ARelatedLinks. can anybody tell me that is that this '&' makes different in other things also? As in my template, Tab functionality also doesnot work which is having '&' character in tabs caption. Also, if I want to use this character as it is what can I do?
Do you have any better luck if you encode the ampersand like you would in html, like &
So you have Q&ARelatedLinks
i will check out
using name like this Q&ARelatedLinks .... also gives blank xslt.... so i think better not to use this character in name.
Hi hetauhet,
Sounds very likely to be a filename problem - when you name an XSLT file in Umbraco, a physical file is generated which will be susceptible to the limitations of the underlying filesystem. Of course, we can agree that Umbraco should handle this gracefully and either flag the name as invalid, or apply a clever "fix" (like using "and" in case of an ampersand, etc.) to the filename and maybe keep the macro name intact?
In any case, you could file a bug report on umbraco.codeplex.com
/Chriztian
is working on a reply...