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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:25:11
Script start
Timing: Jan 31 2025 04:25:11
Module start 'layout'
Timing: Jan 31 2025 04:25:11
Module start 'content'
Timing: Jan 31 2025 04:25:12
Module end 'content'
Timing: Jan 31 2025 04:25:12
Script end

Main resources:

Total runtime1.1700 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0025 739.343836.6484
Module start 'content' 0.00791.1611 775.9922854.0859
Module end 'content' 1.16900.0010 1,630.07817.8516
Script end 1.1700  1,637.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2694160.0002
Check MTime0.00130.1127160.0001
Mysql Total
Database connection0.00100.084210.0010
Mysqli_queries1.126396.2654520.0217
Looping result0.00050.0390500.0000
Template Total1.134797.020.5673
Template load0.00230.196520.0011
Template processing1.132396.777420.5662
Template load and register function0.00150.130910.0015
states
state_id_array0.00360.306910.0036
state_identifier_array0.00240.204420.0012
Override
Cache load0.00190.1632230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.064210.0008
Fetch class attribute name0.00230.192620.0011
XML
Image XML parsing0.00010.007610.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00070.0584100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs