Forums / Setup & design / Cannot display Objects that are in multiple locations.

Cannot display Objects that are in multiple locations.

Author Message

Michel Houtermans

Friday 30 January 2004 8:17:33 am

I created a few objects in a folder and add the same objects to a second folder via the "Add Locations" option.

Now I created a line view override template for the second folder but the objects that are in there are not shown in the line view override that I wrote. They are visible though use the standard template.

To test that my override really worked I actually created a new object in the second folder (so now I have an original on this spot). This did show the object with the override template but it also showed the other objects with the standard template.

Why is this? What do I need to do to show the other objects with the override template? A different fetch maybe?

Marco Zinn

Friday 30 January 2004 12:52:17 pm

Strange. Fetch does usually not care, if it's the "main node" or not.
If you just changed the line view templates, this does not affect the fetch function, as the fetch is done in the folder's full view template...
Did you create a new class?
Can you print the new line view templae here?

Marco
http://www.hyperroad-design.com

Michel Houtermans

Friday 30 January 2004 1:19:42 pm

This is my full view tpl:

<div class="page_title">Trading Log</div>

<table width="100%" class="radar_trade">
<tr class="radar_trade_header">
<td class="radar_trade_header_cell">Symbol</td>
<td class="radar_trade_header_cell">Name</td>
<td class="radar_trade_header_cell">Market</td>
</tr>

{* Grab some of the content of the node that is being viewed. *}
{let children=fetch( content,
list,
hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array,
class_filter_type, include,
class_filter_array, array( 'security' ) ) )}

{* LOOP: For each child of the node... *}
{section name=Child loop=$children}

{* Display the content of the child using a line-view template. *}
{node_view_gui view=line content_node=$Child:item}

{* End of loop. *}
{/section}

</table>

+++++++++++++++++++++++++

And this is my line view tpl:

<tr class="radar_trade_row">
<td class="radar_trade_row_cell">
<a href={$node.url_alias|ezurl}>
{attribute_view_gui attribute=$node.object.data_map.symbol}
</a>
</td>
<td class="radar_trade_row_cell">
{attribute_view_gui attribute=$node.object.data_map.name}
</td>
<td class="radar_trade_row_cell">
{$node.object.data_map.market.content.name}
</td>
</tr>

+++++++++++++++++

This strange thing is the original in the second folder is displayed correctly. But the other ones are displayed right before the Table definition using the standard layout.

Michel Houtermans

Saturday 31 January 2004 12:58:48 am

The original objects in folder 1 belong to the node of folder 1. When I added the object via the Add Locations to folder 2 they still belonged to the node of Folder 1. So when I want to display them in folder 2 I need the node of folder 1 and not folder 2 I think.

Now the question is, is this normal behavior, and just the way it works, or not?

eZ debug

Timing: Jan 18 2025 19:29:57
Script start
Timing: Jan 18 2025 19:29:57
Module start 'content'
Timing: Jan 18 2025 19:29:58
Module end 'content'
Timing: Jan 18 2025 19:29:58
Script end

Main resources:

Total runtime0.8609 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 587.9531180.8125
Module start 'content' 0.00920.7333 768.7656565.1328
Module end 'content' 0.74260.1182 1,333.8984336.7266
Script end 0.8608  1,670.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4651210.0002
Check MTime0.00150.1736210.0001
Mysql Total
Database connection0.00100.114310.0010
Mysqli_queries0.786191.31611970.0040
Looping result0.00180.20391950.0000
Template Total0.832596.720.4163
Template load0.00180.209220.0009
Template processing0.830796.493420.4154
Template load and register function0.00020.026910.0002
states
state_id_array0.00070.075910.0007
state_identifier_array0.00070.085620.0004
Override
Cache load0.00160.1815560.0000
Sytem overhead
Fetch class attribute can translate value0.00180.204630.0006
Fetch class attribute name0.00120.142350.0002
XML
Image XML parsing0.00110.123530.0004
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00320.3773270.0001
String conversion0.00000.001530.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/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
7content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs