Images don't appear in a fetch except when it is main location is in Content

Author Message

Andrew Yochum

Saturday 12 March 2005 1:35:21 pm

I have a collection of images that are to be reused throughout a site. I decided to use the multiple locations functionality to achieve this, setting the main location in a folder in the Media section and the additional locations throughout the site in Galleries. But using this orgizational strategy isn't working.

The image doesn't get retrieved in a fetch_alias(children,...) in a Gallery on the site. However, if the main location is within the Content section (in the site), it does appear on the fetch_alias(children,...) in both its main and additional locations in a Gallery. I then tried adding locations such as a stock Folder that displays children, and still no images listed. I've also tried using a fetch('content','list',...) by hand instead of using the fetch_alias, but that didn't help.

This seems like a bug, but I'm not 100% sure. Does anyone have any help here?

Andrew Yochum

Saturday 12 March 2005 3:58:39 pm

Some more experimentation revealed that it doesn't matter what the main location is, it matters what the *first* main location is, in other words, where it was created. This seems to determine the section that the object is in. If it is first created in the Media section, its section stays that way even if I change its main location.

I still no answer to the problem, though.

FYI, I am running v3.5.1.

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 20 2025 06:04:42
Script start
Timing: Jan 20 2025 06:04:42
Module start 'layout'
Timing: Jan 20 2025 06:04:42
Module start 'content'
Timing: Jan 20 2025 06:04:43
Module end 'content'
Timing: Jan 20 2025 06:04:43
Script end

Main resources:

Total runtime1.7306 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.6484152.6875
Module start 'layout' 0.00620.0030 742.335939.5234
Module start 'content' 0.00921.7198 781.8594423.5078
Module end 'content' 1.72900.0016 1,205.36728.0625
Script end 1.7306  1,213.4297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1963160.0002
Check MTime0.00130.0763160.0001
Mysql Total
Database connection0.00090.052210.0009
Mysqli_queries1.687897.5290520.0325
Looping result0.00080.0444500.0000
Template Total1.689697.620.8448
Template load0.00280.162020.0014
Template processing1.686897.466120.8434
Template load and register function0.00030.019110.0003
states
state_id_array0.00260.148310.0026
state_identifier_array0.00350.203520.0018
Override
Cache load0.00210.1223100.0002
Sytem overhead
Fetch class attribute can translate value0.00100.059510.0010
Fetch class attribute name0.00140.082220.0007
XML
Image XML parsing0.00010.008010.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00140.0795100.0001
String conversion0.00000.000640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs