Forums / Developer / Using the limitation placement

Using the limitation placement

Author Message

Thomas Schamm

Monday 20 October 2003 4:26:44 pm

Hi,

in design:content/edit_placement.tpl the first few lines are outcommented like this:

{* Example code of how to do limitation placement
...
<input type="hidden" name="MainNodeID" value="26" />

<input type="hidden" name="SetPlacementNodeIDArray[1]" value="26" />
<input type="hidden" name="SetRemoteIDOrderMap[1]" value="1" />
<input type="hidden" name="SetRemoteIDFieldMap[1]" value="9" />
...
*}

In a special case i want to go around the /content/edit.tpl and want to add the object (create a new node) in another folder. For this i pass the $folderid and the $object.id . So i tried out with the example code instead of using the standard edit_placement.tpl.

1.) When i use the whole example, i get an error msg.
2.) When i delete the Arrays [2] & [3], the node is created, but my main node isn't the original and if the object is a useraccount, the account is resetted.

Has someone experience with limitation placement?
Kind Regards, Thomas

Thomas Schamm

Tuesday 21 October 2003 9:41:33 am

I have another problem with this placement method:

When i view /content/edit.tpl, i don't see any added nodes, because they have the value 'remote_id' != 0 (different from 0, eg 2, 3, ...) If I user SetPlacementNodeIDArray[0], SetRemoteIDOrderMap[0] and SetRemoteIDFieldMap[0], i get the remote_id = 0, but then one of my former nodes having remote_id = 0 is overwritten. :-(
What can i do to change the remote_id to 0 after adding a new placement to an object??
Thanks, Thomas