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
I'm trying to render in a master the url of the current node with inline xslt but it does not displays anything.
I'm using version 4.9
This is what I try to do:
<umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl({0})" />
After reading several posts It seems it could be possible but maybe I'm doing something wrong...
<umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl($currentPage/../@id"/>
This should show the URL of the current node. If you want the domain to display, you will need to ensure that "useDomainPrefixes" is set to "true" in the umbracoSettings.config file.
Hope that helps.
Yes, it is what I expected, but when I use the xslt attribute it doesn't renders anything. Without it, the page id it's returned.
Since upgrading from version 4.8.0 to 4.9.1, I'm having the same issue.
Nothing is returned when using xslt="umbraco.library:NiceUrl({0})"
Hi all,
This was a bug, see here (there's a patched DLL in the comments): http://issues.umbraco.org/issue/U4-776
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
inline xslt on umbraco:item does not works
I'm trying to render in a master the url of the current node with inline xslt but it does not displays anything.
I'm using version 4.9
This is what I try to do:
<umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl({0})" />
After reading several posts It seems it could be possible but maybe I'm doing something wrong...
<umbraco:Item field="pageID" runat="server" xslt="umbraco.library:NiceUrl($currentPage/../@id"/>
This should show the URL of the current node. If you want the domain to display, you will need to ensure that "useDomainPrefixes" is set to "true" in the umbracoSettings.config file.
Hope that helps.
Yes, it is what I expected, but when I use the xslt attribute it doesn't renders anything. Without it, the page id it's returned.
Since upgrading from version 4.8.0 to 4.9.1, I'm having the same issue.
Nothing is returned when using xslt="umbraco.library:NiceUrl({0})"
Hi all,
This was a bug, see here (there's a patched DLL in the comments): http://issues.umbraco.org/issue/U4-776
/Chriztian
is working on a reply...