Import content object

Author Message

Ivan Švogor

Monday 06 December 2010 7:36:35 am

Hello,

I've exported my content object packages, and when I try to import them it goes well, but fetch functions just don't see this objects. For instance, let there be:

FOLDER

-- imported article
-- imported my custom class
-- imported image
-- ...

After inport, in administration panel it showes this, and it seems to work fine. But in fact it does not work from user view. I wrote a fetch function to return number of (in this case articles) and it returns 0, but administration panel displays a few.

(I'm on ubuntu, do you maybe know what is wrong? - (also, when I add a new class fetch recognizes it, but those imported not, I'm wondering why?))

Lo' F.

Tuesday 07 December 2010 12:50:56 pm

Hi Ivan,

I had a similar problem and that was actually happening when I had to list the fetched items from a folder full view as well as from the left menu.

That maybe has something to do with the classes listed under [MenuContentSettings] in menu.ini and [TreeMenu] in contentstructuremenu.ini

If there is an if statement or a class_filter based on ezini that might be the reason... and if so I think that either you need to add your imported classes in those .ini files or omit the ezini condition and/or filter on your fetch..

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.