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

eZ debug

Timing: Jan 18 2025 19:37:29
Script start
Timing: Jan 18 2025 19:37:29
Module start 'content'
Timing: Jan 18 2025 19:37:30
Module end 'content'
Timing: Jan 18 2025 19:37:30
Script end

Main resources:

Total runtime0.8782 sec
Peak memory usage4,096.0000 KB
Database Queries189

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.8281180.8359
Module start 'content' 0.00450.7421 769.6641435.9297
Module end 'content' 0.74670.1315 1,205.5938333.7891
Script end 0.8782  1,539.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4431210.0002
Check MTime0.00140.1578210.0001
Mysql Total
Database connection0.00060.066210.0006
Mysqli_queries0.819393.29261890.0043
Looping result0.00170.19721870.0000
Template Total0.858197.720.4290
Template load0.00200.227020.0010
Template processing0.856097.475920.4280
Template load and register function0.00020.019910.0002
states
state_id_array0.00050.051610.0005
state_identifier_array0.00050.058920.0003
Override
Cache load0.00160.1814230.0001
Sytem overhead
Fetch class attribute can translate value0.00110.124320.0005
Fetch class attribute name0.00110.128220.0006
XML
Image XML parsing0.00070.078720.0003
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00180.2054210.0001
String conversion0.00000.003030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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