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.