Forums / General / How to get node id in form.

How to get node id in form.

Author Message

Kristoffer Raun

Friday 01 February 2008 2:11:56 pm

Hi

I'm currently working on a input form where users can input data in a class. When this form is submitted, I want the user to be redirected (using RedirectURIAfterPublish) to the form that they just filled out.
I would like to use content/view/full/ and redirect them to the node (not object) of the filled out form, so that they on the fly can add more information.

I can get the object id by using

{$object.id}

How do i get the node Id ?

thanks in advance!
Kristoffer

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

André R.

Saturday 02 February 2008 3:50:19 am

The node doesn't exist yet, it is created when the object is first published.

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

Kristoffer Raun

Saturday 02 February 2008 7:31:36 am

Thank a lot for your input, I had an idea of this as one of the likely causes

Does anyone have an idea of publishing content using frontpage, by not using a form.
The user should only be allowed to publish one type of object (using a class) at the given place on the homepage. Several different classes for posting will be available, but should only be accessible at given places.

thanks in advance
Kristoffer Raun

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming

Łukasz Serwatka

Saturday 02 February 2008 11:18:37 am

This topic might be useful:
http://ez.no/ezpublish/documentation/customization/tips_tricks/forms_processing_example_store_user_data_without_logging_in

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristoffer Raun

Saturday 02 February 2008 11:40:34 am

Thanks for the hint - I will take a look at it!

<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming