Wednesday 04 May 2005 11:22:06 pm
What I hear Bruce saying is this ... To publish to multiple locations (during creation / instantiation of the content object) you must create a template override of the file: design/standard/templates/content/edit_placement.tpl
Once you have created a template override of the file you can customize it to contain the information needed to publish a single content object (say: article) to multiple locations (say: folders). The relevant variables to customize are: SetPlacementNodeIDArray
SetRemoteIDOrderMap
SetRemoteIDFieldMap
You will want to use at least one of these variables (duplicate the form entries to build an array using hidden form fields) to achieve your multi-location-placement-on-content-object-creation ... <input type="hidden" name="SetPlacementNodeIDArray[]" value="{$Node:item.parent_node}" />
<input type="hidden" name="SetPlacementNodeIDArray[]" value="{$altParentNode}" />
Ok so I have to tell you that there is a really good chance that you will need a combination of the above variables to be set via html hidden form fields, instead of just any one variable. If you read the source code you will see a section that will exit if all the variables are not defined. With that said I don't entirely understand what values are expected / required for : SetRemoteIDOrderMap, SetRemoteIDFieldMap ....
<i>References:
http://www.ez.no/community/forum/setup_design/problem_adding_content_using_own_edittpl
http://pubsvn.ez.no/viewcvs/ezp/stable/3.5/kernel/content/node_edit.php?rev=10652&view=log
http://pubsvn.ez.no/websvn/filedetails.php?repname=nextgen&path=%2Fstable%2F3.5%2Fkernel%2Fcontent%2Fnode_edit.php&rev=0&sc=1
http://pubsvn.ez.no/viewcvs/ezp/stable/3.5/kernel/content/node_edit.php?view=markup
http://www.google.com/search?hl=en&q=SetPlacementNodeIDArray&btnG=Google+Search </i>
hack harder... //kracker <i>All the television children have grown to become addicted to www tune out the meaning ..." --|</i> Alias : Pill Hiding
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
|