I have a image slider on my site and it contains a headertext, a text, a image and a link.
I not sure how to make the link Work properly. My "solution" now is that i have created a richtextbox editor where I just write the text and add the link there. but is not working good. I get can se the html in the link"box", and its not working..
So where does the link go? Is it internal (somewhere in the site) or external?
Best option would probably be to use the URL Picker DataType in uComponents, if that's an option (uComponents is a separate package with lots of goodies).
Second best - if the link is internal, use a Content Picker for the mediaSliderLink property, which stores an ID, and then you can use the NiceUrl() extension to get the URL, like this:
I have also tried to do the same in my startpage which is not xslt. Like this: <a href="{umbraco.library:NiceUrl(item1Link)}" class="more" >read more</a>
But it seems not to Work. What is the solution here??
I am using Umbraco 7 and Found that (after not being able to find the simple Link Picker) the Multi URL Picker plugin works fine. It accepts a link, title and optional 'open in' variables, you can find it here : http://our.umbraco.org/projects/backoffice-extensions/multi-url-picker
Sadly there is no uComponents for Umbraco 7 however we do now have nuPickers (https://github.com/uComponents/nuPickers). This is a great package but also lacking a URL/Link picker at the moment.
A simple link
Hi everyone!
I have a image slider on my site and it contains a headertext, a text, a image and a link. I not sure how to make the link Work properly. My "solution" now is that i have created a richtextbox editor where I just write the text and add the link there. but is not working good. I get can se the html in the link"box", and its not working..
Any ideas? my code is like this
Hi Beginner,
So where does the link go? Is it internal (somewhere in the site) or external?
Best option would probably be to use the URL Picker DataType in uComponents, if that's an option (uComponents is a separate package with lots of goodies).
Second best - if the link is internal, use a Content Picker for the
mediaSliderLink
property, which stores an ID, and then you can use theNiceUrl()
extension to get the URL, like this:Lastly, if you just want to use the RTE that you've got now, do this instead:
The
disable-output-escaping
attribute fixes the problem you have with the HTML tags being escaped./Chriztian
Thanks! It Works great!
I have also tried to do the same in my startpage which is not xslt. Like this:
<a href="{umbraco.library:NiceUrl(item1Link)}" class="more" >read more</a>
But it seems not to Work. What is the solution here??
Old thread, but just in case it helps someone...
I am using Umbraco 7 and Found that (after not being able to find the simple Link Picker) the Multi URL Picker plugin works fine. It accepts a link, title and optional 'open in' variables, you can find it here : http://our.umbraco.org/projects/backoffice-extensions/multi-url-picker
If you're using Umbraco 6, as Chriztian says above, uComponents (https://github.com/uComponents/uComponents) is the way to go!!
Sadly there is no uComponents for Umbraco 7 however we do now have nuPickers (https://github.com/uComponents/nuPickers). This is a great package but also lacking a URL/Link picker at the moment.
Ammendum : One of the admins, Jeavon just cam back to me with this too : http://www.nuget.org/packages/UrlPicker/, Kudos to him, seems to be just the job!
Kind Regards,
Danny "Blatant"
is working on a reply...