Powercontent: How to add user parametrers ?

You need to be logged in to post messages in the forums. New users may register here.

Seb gaillard

Member since:
03 March 2009

Posts: 7

Tuesday 19 May 2009 12:16:36 am

Hi,

I use powercontent for adding 2 different types of content ('testimony','tip').
When a user contribute, i would like to display a message like "We have received your testimony/tip. It will be available soon".

I have do this at the end of modules/powercontent/action.php
before:












































Up

Kristof Coomans

Member since:
09 January 2008

Posts: 66

Tuesday 19 May 2009 11:01:52 am

Hi Seb

What exactly do you want to accomplish by passing user parameters to the content/edit module? I think you'd rather want to have content/edit to redirect to another page which handles the "type" user parameter and displays the message. You can use the RedirectURIAfterPublish post variable for that.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Up

Seb gaillard

Member since:
03 March 2009

Posts: 7

Tuesday 19 May 2009 1:16:53 pm

Hi Kristof,

I think that the RedirectURIAfterPublish post variable can do what I want.
You have understood what I search to accomplish:
1/ add a new content with powarcontent
2/ after, redirect to the main node with a parameter used to display a message like "thank's for your contribution....".
How can I use the RedirectURIAfterPublish post variable ?
Do I make something in action.php ?

Thank's for your help and excuse my english...

Seb
Up

Kristof Coomans

Member since:
09 January 2008

Posts: 66

Thursday 28 May 2009 1:01:25 pm

Hi Seb

Redirecting to the main node of the newly created content is possible with the RedirectToMainNodeAfterPublish post variable. You will need the redirect extension as well though: http://projects.ez.no/redirect2

Adding user parameters to the node view url which the browser will eventually be redirected to is not possible right now, but that might be a nice enhancement. Would one powercontent-specific user parameter be enough? Or should the template writer have the possibility to add another post variable to pass the desired user parameters?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Up

Seb gaillard

Member since:
03 March 2009

Posts: 7

Thursday 11 June 2009 9:07:39 am

Hi Kristof,

Thank's for your reply. By reading your last reply, I have realised that it would better that I stop learning eZ and I use that time to study english... I didn't explain correclu what I would like to do.
Finaly I have done what I would like to do like this :























Up

You need to be logged in to post messages in the forums. New users may register here.