Tuesday 28 February 2006 10:00:26 am - 10 replies
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 ezpublish.
My question is :
How can I redirect to the content I've juste created ?
Thanks.
Tuesday 28 February 2006 11: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 eZ publish. Feel free to try it, I hope it solves your problem.
Modified on Tuesday 28 February 2006 11:51:58 am by Kristof Coomans
Tuesday 28 February 2006 12:19:29 pm
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.
Modified on Tuesday 28 February 2006 12:20:38 pm by Ćukasz Serwatka
Tuesday 28 February 2006 12:57:53 pm
You can read more about new redirection after user login feature in upcoming 3.8 here:
http://pubsvn.ez.no/websvn/filede...er_user_login.txt&rev=0&sc=1
Monday 25 June 2007 1:56:58 pm
Contribution page: http://ez.no/community/contribs/applications/redirect
You must be logged in to post messages in this topic!