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

eZ debug

Timing: Jan 31 2025 01:19:32
Script start
Timing: Jan 31 2025 01:19:32
Module start 'content'
Timing: Jan 31 2025 01:19:32
Module end 'content'
Timing: Jan 31 2025 01:19:32
Script end

Main resources:

Total runtime0.3695 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.9219370.3047
Module start 'content' 0.00800.0324 958.22661,005.6094
Module end 'content' 0.04040.3290 1,963.83593,894.1875
Script end 0.3694  5,858.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00481.3106200.0002
Check MTime0.00140.3864200.0001
Mysql Total
Database connection0.00100.259010.0010
Mysqli_queries0.221259.85121410.0016
Looping result0.00150.40421390.0000
Template Total0.328488.910.3284
Template load0.00090.253310.0009
Template processing0.327588.623810.3275
Override
Cache load0.00070.179710.0007
Sytem overhead
Fetch class attribute can translate value0.00180.476310.0018
XML
Image XML parsing0.00030.069010.0003
General
dbfile0.02486.7125200.0012
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs