How to create a link to an item within the Umbraco UI?
Hi All,
We have an automated process that is importing new content on a timed period. Each time new content is imported into Umbraco we send an email with links to the items within the Umbraco UI. What we would like is for the end user to be able to click on the link and if they are not currently logged in, it should prompt the user to log in and then take them to that content node.
Is this functionality that already exists in Umbraco, if so how should we form our URL's?
This will bring up the login screen, when the user is logged in they are redirected to that URL.
Then set up a dashboard for the default section which contains a user control. This user control can then call the content tree frame and content frame via javascript to navigate to the correct node.
Bit late in the response. What you could do is open up the umbraco source and check how they implemented the workflow functionality. When a writer sends a document for aproval, the editor receives an email with a link to the document.
How to create a link to an item within the Umbraco UI?
Hi All,
We have an automated process that is importing new content on a timed period. Each time new content is imported into Umbraco we send an email with links to the items within the Umbraco UI. What we would like is for the end user to be able to click on the link and if they are not currently logged in, it should prompt the user to log in and then take them to that content node.
Is this functionality that already exists in Umbraco, if so how should we form our URL's?
Thanks in advance,
Chris
Hi Chris,
I don't think this exists out of the box, but here's how I might implement it.
Send out the URL like this:
http://www.sitename.com/umbraco/umbraco.aspx?nodeId=1173
This will bring up the login screen, when the user is logged in they are redirected to that URL.
Then set up a dashboard for the default section which contains a user control. This user control can then call the content tree frame and content frame via javascript to navigate to the correct node.
Something like:
function openContent(id) {
parent.right.document.location.href = 'editContent.aspx?id=' + id;
}
Just dug up the source, and found that it is supported:
http://www.example.com/umbraco/umbraco.aspx?rightAction=editContent&id=1449
doh!
Hmmm,
doesn't seem to work for me....
The form does not display and the navigation tree doesn't open in the right place. The tabs appear however, so it's doing something!
Am I calling it wrong??
T
Hmmm - If you click on a tab then the form appears.
That's very close, to being genius!
T
Hi Morten / Tim,
Thank you both :)
Yes, that does exactly what i wanted.. except it seems there is a slight bug in it.
In firefox it opens up the tree and the right hand tabs don't show any content.
In IE8 it also opens the tree and shows the tabs all stacked on top of each other.. very weird!
At least the client can then just click on the openned node and it all works.
I will see if this is raised as a bug in Codeplex, as we have the same issue with a dashboard control in firefox.
Cheers,
Chris
Yeah - seems buggy to me.
I'd roll my own for the moment and report the bugs to codeplex.
T
Works excellent in Chrome :-)
Hi Chris,
Bit late in the response. What you could do is open up the umbraco source and check how they implemented the workflow functionality. When a writer sends a document for aproval, the editor receives an email with a link to the document.
Cheers,
Richard
Here's how it is done from a notification email from within umbraco, which I take to mean is the proper way to do this.
http://example.com/umbraco/actions/editContent.aspx?id=1241
That will prompt for login if necessary. But it does not display properly in 4.0.1, at least not on FF/Mac.
Sounds like there are various bugs that should be reported.
cheers,
doug.
is working on a reply...
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.