Forums / Developer / Node number at first publishing ?
Maxime Thomas
Tuesday 28 February 2006 1:00:26 am
Hi,
I would like to make a redirect after a publishing. The redirect must be on the content I've just created. In order to do that, I would like to use the RedirectURI hidden input but, I don't know what to put as value because I can't access to node number or url alias. This is a bit normal because the content I'm creating is not registred as a node in Exponential.
My question is :
How can I redirect to the content I've juste created ?
Thanks.
Maxime Thomas maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas
Kristof Coomans
Tuesday 28 February 2006 2:51:40 am
I needed to accomplish this too, but didn't succeed by using existing functionality.
I made my own module which redirects to the main node of an object, by specifying the object id as a parameter in the URL. I've uploaded my extension to pubsvn, you can check it out from http://pubsvn.ez.no/community/trunk/extension/redirect.
Installation and use:
- enable the extension - give your users access to the redirect module (assign them a role with a policy for function redirect of module redirect) - you can use /redirect/mainnode/<i>yourobjectid</i> in the RedirectURIAfterPublish hidden input field.- custom view parameters are passed by in the URL, so you can use /redirect/mainnode/<i>yourobjectid</i>/(customkey)/customvalue.
The extension was created in April 2005, and hasn't been tested on more recent releases of Exponential. Feel free to try it, I hope it solves your problem.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Łukasz Serwatka
Tuesday 28 February 2006 3:19:29 am
Kristof did you think about making a package and put it into Contrib section? Probably more users will need something similar, and not all users browsing pubsvn, now it is a bit hidden.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 28 February 2006 3:48:45 am
Thank you.
I wonder why this is not an Exponential settings as well as redirection after loggin. It could be nice to have :
<b>[RedirectSettings]</b> RedirectMode=parent/content
I'm trying your extension.
Tuesday 28 February 2006 3:57:53 am
You can read more about new redirection after user login feature in upcoming 3.8 here:
http://pubsvn.ez.no/websvn/filedetails.php?repname=nextgen&path=%2Ftrunk%2Fdoc%2Ffeatures%2F3.8%2Fadvanced_redirection_after_user_login.txt&rev=0&sc=1
Tuesday 28 February 2006 4:32:44 am
Hi Lukasz
Adding the extension to pubsvn was the quickest way to get it to Maxime. I will make a package and add it to the contributions at ez.no as soon as I have some more time. I know I should do this for all my extensions on pubsvn...
Tuesday 28 February 2006 5:21:39 am
Ok.
The extension is working with Exponential v 3.7.3
Monday 25 June 2007 4:56:58 am
Contribution page: http://ez.no/community/contribs/applications/redirect
James Ward
Friday 25 April 2008 9:16:28 am
Still works like a charm in ez 3.10. Thanks for the great contrib.
working at www.wardnet.com blogging at www.jamesward.ca
andre müller
Sunday 18 May 2008 7:29:34 am
hmm, i don't understand all this..isn't this extension used to redirect to the main node of a not yet existing object? in that case, where do i get the object id from??should i use the powercontent extension?
André R.
Sunday 28 September 2008 1:46:34 pm
Not yet published object (so it doesn't have a node id yet).Typically used from edit templates if you want to redirect to the node after the user publishes the object, indirectly via this extension.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom