Copied to clipboard

Flag this post as spam?

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


  • Jonas Eriksson 930 posts 1825 karma points
    Oct 18, 2009 @ 19:49
    Jonas Eriksson
    0

    Link to content node in admin gui (dashboard)

    Hi! On the dashboard, I like to add links to certain nodes in the content section, so that the editors can open the most regular edited nodes quickly. Here's what I came up with; I added this link in the umbraco.aspx:

    <a href="#" onclick="right.document.location.href = 'editContent.aspx?id=1256';return false;">Go to News node></a>

    Any other way to accomplish this (as my was seem a bit hackish)?

  • Chris Dunn 75 posts 127 karma points
    Oct 20, 2009 @ 02:08
    Chris Dunn
    0

    I think you will want to prefix the onclick with 'parent'.

    <a href="#" onclick="parent.right.document.location.href = 'editContent.aspx?id=1256';return false;">Go to News node></a>

    It might seem hackish but if you look at the backend search it navigates to nodes in a similar way.

    -Chris

  • Chris Dunn 75 posts 127 karma points
    Oct 20, 2009 @ 02:18
    Chris Dunn
    0

    On second thought why not just link to the node directly without the onclick?

    <a href="editContent.aspx?id=1256" >Go to News node></a>
  • Jonas Eriksson 930 posts 1825 karma points
    Oct 20, 2009 @ 08:18
    Jonas Eriksson
    0

    Thanks for your input.

    Yes, my links are left of the help button, on "parent" so I had to write it that way. Thats why "editContent.aspx?id=1256" didn't work either.

    About the "hackishism", ok, you are ofcourse right about that is how it's written in the backend. The more elegant way would perhaps be to create some user control. Perhaps there's some existing project dealing with this. ?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies