Forums / General / Publish/create offset

Publish/create offset

Author Message

Steph A

Thursday 27 October 2005 3:03:33 am

I was wondering if its possible to be in one folder, and then publish to another?

Lets say I have a folder called "My account" and under that one, a folder called "My objects". When the current user views "My objects" he can edit, remove and create new objects - owned by himself.

Now how can I define where the objects will be created - beacause I dont want it to be created under "My objects" - but to a predefined node.

Anyone know how?

Ɓukasz Serwatka

Thursday 27 October 2005 3:06:15 am

Hi you will need NodeID of place where you want to publish object.

Exampe code can look:

{*Create new article in News folder with nodeID 63*}
<form method="post" action={"content/action"|ezurl}>
	<input type="hidden" name="ClassID" value="2" />
	<input type="hidden" name="NodeID" value="63" />
	<input type="hidden" name="ViewMode" value="full" />
	<input class="button" type="submit" name="NewButton" value="Add article" />
</form>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Steph A

Thursday 27 October 2005 3:24:27 am

Thank you - worked like a dream! ;)