Forums / Setup & design / Problem adding content using own edit.tpl

Problem adding content using own edit.tpl

Author Message

Shurbann Martes

Tuesday 28 October 2003 5:06:00 pm

I'm trying to add a content using my own customized-template. I've been hacking the edit.tpl and put it it my own design. So far so good.

But now when I click on the "publish" button I get this validation error:
"Location did not validate. No main node selected, please select one."

In the template I have this code:


<input type="hidden" name="MainNodeID" value="{$Node:item.parent_node}" />

and in the page source I see this:

<input type="hidden" name="MainNodeID" value="238" />

Why is eZ telling me the above?
TIA.

Shurbann

Arash Molavi

Wednesday 29 October 2003 12:26:08 pm

Does the user have role-permenissions to add content in that folder?

Bruce Morrison

Friday 31 October 2003 12:11:14 am

I think you will also need

<input type="hidden" name="SetPlacementNodeIDArray[]" value="{$Node:item.parent_node}" />

Cheers
Bruce
http://www.designit.com.au/

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish