Forums / Setup & design / Publish article to multiple nodes? (#2)

Publish article to multiple nodes? (#2)

Author Message

Marko Žmak

Sunday 15 May 2005 6:24:27 am

This question was already asked on the forum, but what I got form the answers didn't work.

I'd like to publish an object to several nodes but using only one form. NOT by using "Add locations" button, but by selecting locations from a drop down menu in the form.

I tried to implement it by using the following form variables:

SetPlacementNodeIDArray[]
SetRemoteIDOrderMap[]
SetRemoteIDFieldMap[]

but id doesn't work. The object is published only to the first node specified by SetPlacementNodeIDArray[], the other nodes are just ignored.

Does anyone know the sollution to this problem?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Tuesday 17 May 2005 2:42:49 am

Does anyone have any answer to this problem?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Monday 23 May 2005 4:14:01 pm

Hi Marko

I have used these form variables sucessfully in versions of ezPublish prior to the 3.5 series. However there seems to be some changes in how this is hanled in the 3.5 series. This is likely to be due to the fact that the node location functionallity has moved from the object editing screen.

After a quick look at the source code (hint hint :) it appears that the varaible useNodeAssigments must be set to 1 for these variables to be used (it is set to 0 by default).

The following variables must also be set or the placement will fail:
+ MainNodeID
+ SortOrderMap
+ SortFieldMap

The function to look at is storeNodeAssignments starting at line 226 of kernel/content/node_edit.php

At this point in time I have not tested this functionallity, only looked at the source.

Cheers
bruce

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

Marko Žmak

Monday 23 May 2005 4:19:16 pm

What is the purpose of this variables:

+ SortOrderMap
+ SortFieldMap

I saw them in edit_placement.tpl but it seems to me that they are used to browse for additional locations, not to set them.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Tuesday 24 May 2005 4:24:38 pm

+ SortOrderMap
+ SortFieldMap

I believe they are used to set the ordering of the newly created node (how the children of the newly created node will be ordered).

Cheers
Bruce

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

kracker (the)

Tuesday 24 May 2005 11:23:24 pm

Ahh, Thank you Bruce!

Your explanation of the SortOrderMap and SortFieldMap make a lot of sense and clarify the last little bit I did not understand the first time around.

While I've not used this functionality yet, I believe in it and urge anyone else trying to use it to read the applicable kernel/ source code.

Perform some interactive debugging with tracer bullet output ( echo/print() )and breakpoints ( die() ) with all cache <b>disabled</b> to learn for yourself just how to successfully develop using this functionality.

//kracker
<i>Deftones : Knife Prty (Acoustic)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marko Žmak

Wednesday 25 May 2005 3:23:15 am

I'll probably try it in a week or two (don't have time right now). If I have success I'll reported here.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 18 2025 18:29:28
Script start
Timing: Jan 18 2025 18:29:28
Module start 'content'
Timing: Jan 18 2025 18:29:28
Module end 'content'
Timing: Jan 18 2025 18:29:28
Script end

Main resources:

Total runtime0.1527 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.9531180.8281
Module start 'content' 0.00670.0069 769.7813101.8828
Module end 'content' 0.01360.1389 871.6641530.5781
Script end 0.1525  1,402.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.4156200.0002
Check MTime0.00151.0113200.0001
Mysql Total
Database connection0.00110.708710.0011
Mysqli_queries0.103167.51671410.0007
Looping result0.00191.27381390.0000
Template Total0.138490.710.1384
Template load0.00100.664810.0010
Template processing0.137490.001510.1374
Override
Cache load0.00060.422410.0006
Sytem overhead
Fetch class attribute can translate value0.00201.328310.0020
XML
Image XML parsing0.00040.278310.0004
General
dbfile0.00332.1684200.0002
String conversion0.00000.005330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs