eZ Community » Forums » Developer » Node number at first publishing ?
expandshrink

Node number at first publishing ?

Node number at first publishing ?

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:48:45 pm

Thank you.

I wonder why this is not an ezpublish 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 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

Tuesday 28 February 2006 1:32:44 pm

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 2:21:39 pm

Ok.

The extension is working with ezpublish v 3.7.3

Monday 25 June 2007 1:56:58 pm

Contribution page: http://ez.no/community/contribs/applications/redirect

Friday 25 April 2008 6:16:28 pm

Still works like a charm in ez 3.10. Thanks for the great contrib.

Sunday 18 May 2008 4:29:34 pm

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?

Sunday 28 September 2008 10: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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from