Thursday 15 May 2008 12:12:15 am
Hi everybody ! I would like to manually create a form who publishes new objects, and insert him into a view full template. In other words : on my homepage (homepage.tpl => mapped of view full of node_id 2), I want to insert a form (inspired by ezwebin/design/ezwebin/override/templates/edit/forum_topic.tpl by example) who permit anonymous user to add object of the "free_comment" class. The problem is that into the form (forum_topic.tpl like) I need the $object variable in order to build the form head :
<form enctype="multipart/form-data" method="post" action={concat( "/content/edit/", $object.id, "/", $edit_version, "/", $edit_language|not|choose( concat( $edit_language, "/" ), '' ) )|ezurl}>
... and into the view full of my homepage, I don't know how to get the $object variable... I precise that i don't want to just insert a submit button who redirect the user to the content/edit view, but to really insert the form into my homepage. Thanks in advance !
eZ Publish Freelance
web : http://www.webaxis.fr
|