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.

eZ debug

Timing: Jan 18 2025 18:39:39
Script start
Timing: Jan 18 2025 18:39:39
Module start 'layout'
Timing: Jan 18 2025 18:39:39
Module start 'content'
Timing: Jan 18 2025 18:39:39
Module end 'content'
Timing: Jan 18 2025 18:39:39
Script end

Main resources:

Total runtime0.6794 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.9375152.6094
Module start 'layout' 0.00770.0044 741.546939.4219
Module start 'content' 0.01210.6660 780.9688521.2109
Module end 'content' 0.67810.0013 1,302.17978.3438
Script end 0.6794  1,310.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5063160.0002
Check MTime0.00140.2059160.0001
Mysql Total
Database connection0.00090.133110.0009
Mysqli_queries0.629592.6535540.0117
Looping result0.00060.0831520.0000
Template Total0.643494.720.3217
Template load0.00210.312620.0011
Template processing0.641294.381020.3206
Template load and register function0.00020.024710.0002
states
state_id_array0.00090.131310.0009
state_identifier_array0.00140.203720.0007
Override
Cache load0.00180.2656180.0001
Sytem overhead
Fetch class attribute can translate value0.00100.154120.0005
Fetch class attribute name0.00200.300730.0007
XML
Image XML parsing0.00070.103420.0004
class_abstraction
Instantiating content class attribute0.00000.001730.0000
General
dbfile0.00090.1315160.0001
String conversion0.00000.001640.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs