Duplication of content in different locations.

Author Message

Vidyut Luther

Wednesday 06 September 2006 12:19:05 pm

Is it possible to Add the same location to multiple objects ? I have a node with a folder, that has 146 sub-items. When I specify the Folder has an additional location, I only see the folder, but not the sub items of the folder in the new location. I can manually do this, but I was wondering/hoping there is a better way.

I am using 3.8.2

Norman Leutner

Friday 08 September 2006 12:20:17 pm

Hi,
usually you can fetch the tree from a different node within the template.

The only way I know is to run a automated script which duplicates the object and publishes them under a different node.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Lars Bratli

Friday 22 September 2006 6:07:34 am

in full/folder.tpl

{if eq($node.node_id,$node.main_node_id)}

{* Fetch from $node.node_id *}

{else}

{* Fetch from $node.main_node_id*}

{/if}

edit:
or just fetch from $node.main_node_id :P

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 18 2025 18:30:08
Script start
Timing: Jan 18 2025 18:30:08
Module start 'layout'
Timing: Jan 18 2025 18:30:08
Module start 'content'
Timing: Jan 18 2025 18:30:09
Module end 'content'
Timing: Jan 18 2025 18:30:09
Script end

Main resources:

Total runtime1.0265 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0469152.6406
Module start 'layout' 0.00560.0031 740.687539.4766
Module start 'content' 0.00881.0162 780.1641564.6875
Module end 'content' 1.02500.0014 1,344.85168.1250
Script end 1.0264  1,352.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3600160.0002
Check MTime0.00150.1428160.0001
Mysql Total
Database connection0.00090.086410.0009
Mysqli_queries0.979295.3933590.0166
Looping result0.00060.0595570.0000
Template Total0.995597.020.4977
Template load0.00230.222420.0011
Template processing0.993296.757620.4966
Template load and register function0.00030.025210.0003
states
state_id_array0.00090.091010.0009
state_identifier_array0.00140.137720.0007
Override
Cache load0.00190.1818190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047230.0002
Fetch class attribute name0.00150.147140.0004
XML
Image XML parsing0.00080.076830.0003
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00090.0838170.0001
String conversion0.00000.001140.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs