Forums / Setup & design / Placement of content/edit
Jon Arne Carsten
Thursday 28 April 2005 5:45:34 am
Hello
Can anyone help me with this problem.
I am working on giving my users the oppurtunity to upload news. I followed this tutorial:
http://ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page
Status now is that I am able to publish news, but I have to set the placement manually each time. This is not very userfriendly, and therefore I whas wondering how to set the placement to for example the news folder automaticly. Know this??
does it have something to do with the edit_placement.tpl?
Ćukasz Serwatka
Friday 29 April 2005 5:28:37 am
Hi,
You need node_id of news folder and place it hidden filed in your <form>
<input type="hidden" name="NodeID" value="{NEWS_FOLDER.node_id}" />
This mean than new object will be creted under NEWS_FOLDER
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog