Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew Bettesworth 14 posts 35 karma points
    Oct 25, 2011 @ 13:27
    Matthew Bettesworth
    0

    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

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 25, 2011 @ 14:14
    Tom Fulton
    0

    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

  • Matthew Bettesworth 14 posts 35 karma points
    Oct 25, 2011 @ 14:39
    Matthew Bettesworth
    0

    That's fabulous, thank you!

Please Sign in or register to post replies

Write your reply to:

Draft