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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:57:40
Script start
Timing: Jan 18 2025 15:57:40
Module start 'layout'
Timing: Jan 18 2025 15:57:40
Module start 'content'
Timing: Jan 18 2025 15:57:41
Module end 'content'
Timing: Jan 18 2025 15:57:41
Script end

Main resources:

Total runtime0.5354 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.8125152.6250
Module start 'layout' 0.00620.0025 742.437539.4453
Module start 'content' 0.00880.5254 781.8828614.9375
Module end 'content' 0.53420.0012 1,396.820316.1641
Script end 0.5354  1,412.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5921160.0002
Check MTime0.00120.2316160.0001
Mysql Total
Database connection0.00130.245210.0013
Mysqli_queries0.476989.0717650.0073
Looping result0.00050.0933630.0000
Template Total0.511095.420.2555
Template load0.00260.488720.0013
Template processing0.508494.949020.2542
Template load and register function0.00020.035710.0002
states
state_id_array0.00060.115210.0006
state_identifier_array0.00060.104420.0003
Override
Cache load0.00210.3967290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.127830.0002
Fetch class attribute name0.00150.284780.0002
XML
Image XML parsing0.00290.538530.0010
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00210.4012310.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs