eZ Community » Forums » Developer » Redirect to add content after login
expandshrink

Redirect to add content after login

Redirect to add content after login

Sunday 25 September 2011 6:08:43 pm - 3 replies

Hi,

I put a button to add a content type. But only logged users can view the form to add content. I want to redirect to the form to add content after login. How can I do it?

Thanks,

David

Sunday 25 September 2011 8:56:39 pm

Hello David,

Because of the rather custom redirection prolly required you might consider a custom copy of the module for user login. There may be a simpler way I'm just not thinking of.

Also I wonder, since (I think) the content module view requires a POST request to create content you may have some trouble with that requirement.

I would suggest instead redirect from successful login to a user dashboard module view which contains a form to send a post request to create content desired.

I hope this helps,

Cheers,

Heath 

Monday 26 September 2011 11:27:43 pm

I've created a extension to redirecction by POST with PHP Curl. I send "redirect_url" to login with de action of new extension and POST parameters. It works, but it seems to not save the user sesson, because it show de login form again.

Tuesday 27 September 2011 12:12:50 am

Hello David,

I'm pleased to see you continuing to strive to reach your goals.

Could you share your PHP Curl code. It's very hard to help you troubleshoot code efectively without seeing the code in question. You could post your code to a pastebin for example.

I would say it does not work quite yet since you are not succesfully authenticating, establishing a user session and being "let into" the system.

 

Keep trying and best of luck,

 

Cheers,

Heath

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from