Is it possible to add a hyperlink to an umbraco datatype, linking to a content item in the front-end? The behaviour I'm after is exactly the same as that in the "Link to document" shown in Properties tab of content items (all be it with some query string parameters added).
You should be able to make your hyperlink go to any URL you like. I imagine if the above is the URL you are getting, you might not have set the NavigateUrl.
Here is an example of a simple usercontrol datatype that links to the front end page with an altTemplate added, should help get you started.
Back office hyperlink to front end document
Hi,
Is it possible to add a hyperlink to an umbraco datatype, linking to a content item in the front-end? The behaviour I'm after is exactly the same as that in the "Link to document" shown in Properties tab of content items (all be it with some query string parameters added).
When I output it from my .ascx, it shows up in the back office as http://localhost:4330/umbraco/editContent.aspx?id=3098. I assume this is default behaviour for any hyperlinks rendered in the back office.
Any help would be hugely appreciated.
Many thanks,
Matt
Hi Matt,
You should be able to make your hyperlink go to any URL you like. I imagine if the above is the URL you are getting, you might not have set the NavigateUrl.
Here is an example of a simple usercontrol datatype that links to the front end page with an altTemplate added, should help get you started.
-Tom
That's fabulous, thank you!
is working on a reply...