How to include edit form to node display page?

Author Message

Vytautas Germanavičius

Thursday 02 December 2004 4:13:13 am

I want to make edit form in the same page as all entries entered by that form.

Example: guestbook with form to enter new entry in the top.

Simple include of edit form doesn't work.

Problem, i see, is how to get node id for new entry?
Another problem, Should be disabled cashing for that page?

OR

Is any workaround to do this, like to post data from guestbook to edit page, and that page automaticaly redirects to insert function?...

{set-block scope=root variable=cache_ttl}0{/set-block}

Lazaro Ferreira

Thursday 02 December 2004 5:11:45 am

Hi,

when you talk about form, are you talking about a page that edit a content object stored in the database ?, (i.e: a contact form, article, or any user defined content class )

Case yes, you can achive it by overriding edit template for the offending class (i.e: objects of a custom guestbook class ) then adding tpl code to list your objects

To see how to list your objects simply copy ezp full view folder template and change it to your needs

To got it you will need to know how to override an ezp template, and understand ezp template language

 

Lazaro
http://www.mzbusiness.com

Vytautas Germanavičius

Thursday 02 December 2004 1:54:13 pm

I know about oweriding templates.

Problem is that there is no examples how to merge edit and full view templates.

I do know, how to get node id for new item.
Edit form contains variables: $object.id, $edit_version, $edit_language, $main_node_id
How to get those values?

{set-block scope=root variable=cache_ttl}0{/set-block}

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