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
Hy everyone:
I'm developing some behind code to replace the xslt needs. Don't like the idea of spliting design between the template and the xlst.
How can i know the url to a document?
I have the class Document, but it don't give me the url to it.
Is there another class or method like the NiceUrl from xslt?
Thanks,
FS
Can use the same method, it's a static method from the library class, so:
using umbraco; var url = library.NiceUrl(documentId);
Don't forget to add the necessary assembly references!
Hope this helps.
Regards,
/Dirk
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
guess url in codebehind
Hy everyone:
I'm developing some behind code to replace the xslt needs. Don't like the idea of spliting design between the template and the xlst.
How can i know the url to a document?
I have the class Document, but it don't give me the url to it.
Is there another class or method like the NiceUrl from xslt?
Thanks,
FS
Can use the same method, it's a static method from the library class, so:
Don't forget to add the necessary assembly references!
Hope this helps.
Regards,
/Dirk
is working on a reply...