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
how Can I use umbraco Item with xslt as an attribute in a template?
<a href="<umbraco:Item field='pdfFile' runat='server' xslt='umbraco.library:NiceUrl({0})'></umbraco:Item>" >Click to hear Nicola on Regular Saving</a>
it doest not work?!!
Any Idea?
Thanks in advance
Ali
I think this page can help you out: http://umbraco.org/documentation/books/inline-xslt
I have tried that before but didnt work for me
have you tried this:http://our.umbraco.org/forum/developers/api-questions/8569-How-to-call-umbraco-library-function-from-master-page?p=0
<a href='<%=umbraco.library.NiceUrl(1044)%>'>News</a>
Hi tim,
thanks for ur reply. but I want the node number to be dynamic. something like "pdfFile" node id.
Cheers
You could do something like this:<a href='<%=umbraco.library.NiceUrl(umbraco.presentation.nodeFactory.Node.GetCurrent().Id)%>'>test</a>
if you really wanted.but you'd have to go about reading this post first:http://www.delphicsage.com/home/blog.aspx/d=854/title=Code_Expressions_to_Programmaticify_Your_Umbraco_Site
but it'd be much easier making a small macro for your purposes and use xslt instead.
- Tim
I think it's better to make a small macro and it would be much easier.
Thanks Tim
Hi all, in a similar vein, I have been using this inline XSLT to retrieve and display an image
<umbraco:Item runat="server" field="headImage" xslt="concat('<img src="', umbraco.library:GetMedia({0},'true')/ data[@alias='umbracoFile'], '" />')" XsltDisableEscaping="true" />
headImage is a parameter set in the document type ie it's a Media Picker
For one of my development sites it works, for localhost it works, but on my other development site, it doesn't. Any thoughts?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how can I use umb item with xslt as an attribute in a template?
how Can I use umbraco Item with xslt as an attribute in a template?
<a href="<umbraco:Item field='pdfFile' runat='server' xslt='umbraco.library:NiceUrl({0})'></umbraco:Item>" >Click to hear Nicola on Regular Saving</a>
it doest not work?!!
Any Idea?
Thanks in advance
Ali
I think this page can help you out: http://umbraco.org/documentation/books/inline-xslt
I have tried that before but didnt work for me
Ali
have you tried this:
http://our.umbraco.org/forum/developers/api-questions/8569-How-to-call-umbraco-library-function-from-master-page?p=0
Hi tim,
thanks for ur reply. but I want the node number to be dynamic. something like "pdfFile" node id.
Cheers
Ali
You could do something like this:
<a href='<%=umbraco.library.NiceUrl(umbraco.presentation.nodeFactory.Node.GetCurrent().Id)%>'>test</a>
if you really wanted.
but you'd have to go about reading this post first:
http://www.delphicsage.com/home/blog.aspx/d=854/title=Code_Expressions_to_Programmaticify_Your_Umbraco_Site
but it'd be much easier making a small macro for your purposes and use xslt instead.
- Tim
I think it's better to make a small macro and it would be much easier.
Thanks Tim
Hi all, in a similar vein, I have been using this inline XSLT to retrieve and display an image
<umbraco:Item runat="server" field="headImage" xslt="concat('<img src="', umbraco.library:GetMedia({0},'true')/ data[@alias='umbracoFile'], '" />')" XsltDisableEscaping="true" />
headImage is a parameter set in the document type ie it's a Media Picker
For one of my development sites it works, for localhost it works, but on my other development site, it doesn't. Any thoughts?
is working on a reply...