I have several places on my web site where I want users to pick from the site content and put the chosen URL inside an <a> tag inside the template. Is this possible without adding xslt into the mix?
I want something like the Content Picker datatype, but that inserts the NiceUrl instead of the node ID.
Internal links in HTML
Hi,
I have several places on my web site where I want users to pick from the site content and put the chosen URL inside an <a> tag inside the template. Is this possible without adding xslt into the mix?
I want something like the Content Picker datatype, but that inserts the NiceUrl instead of the node ID.
Thank you!
-Elad
The content picker does return the node id or are you talking about in a Rich Text Editor?
Rich
Are you talking about front end or back end users?
Sorry for the mix-up. I meant the other way around.
I want to get the NiceUrl and not the node ID.
I ended up installing uComponent and using the Choose URL datatype.
Works great.
Thank you!
Well... no.
That didn't work. I get nothing from the URL Picker.
Maybe I'm using it wrong. I created a generic property on my Document Type and in the template put:
<a href='<umbraco:Item field="facebookLink" recursive="true" runat="server"></umbraco:Item>'>
When I preview the page, there is nothing in the href.
What version of Umbraco are you using?
If it's 4.7 you can do this is Razor easily, if not you can do it in an xslt macro really easy too.
Let us know
Rich
I'm using 4.5.2
I was hoping to avoid xslt, since this is a simple link picking task.
Isn't there a simple way to just insert a link? (a side from just using a textstring) ?
@Rich: How would I go about accessing the stored XML in XSLT?
Thank you!
See my post here http://our.umbraco.org/forum/developers/xslt/19518-ucomponents-url-picker?p=0#comment74122
Rich
is working on a reply...