Getting output from my custom class

Author Message

Pål Øystein Carlsen

Wednesday 05 November 2003 7:58:34 am

Hi.
I have created a custom class 'reference' that belongs to the 'content' group, it has class id:16. It has two attributes, 'client', and 'description'.

I have created a section called references and a folder assigned to that section called reference.

I would like to print all the reference objects contained in my reference folder. I have done this for standard Articles without problems, however it seems to be something wrong with my way of fetching objects.

{let children=fetch(content, list, hash(parent_node_id, $node.node_id, class_filter_type, include, class_filter_array, array(16) ) )}

when I try to loop through with
{section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item}
{/section}

nothing happens. If I insert a <p>debug</p> inside the {section}{/section} nothing is printed. (it should get printed twice since I have two objects of that class)
I do have reference objects created.
the reference.tpl which contains this code sucessfully overides the full.tpl

I have a file called line_view_ref.tpl which overrides line.tpl. It contains the following code
{attribute_view_gui attribute=$node.object.data_map.client} should it not print out the 'client' attribute of my objects.

Please, what am I missing? I am going crazy looking at this, any input would be very welcome indeed.

Paul Borgermans

Wednesday 05 November 2003 8:26:52 am

It may be that the anonymous user has no rights for your new class

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Pål Øystein Carlsen

Wednesday 05 November 2003 2:12:19 pm

Good point, and actually I initially had not tought of that, but unfortunatly, I have added read rights to my new class to Anonymous User some time ago(I had a problem with access rights at another stage so I was aware of it for my new class), with no luck.

Any other ideas?

Valentin Svelland

Thursday 06 November 2003 8:57:00 am

aaaaaaaaaaarrgh! Of course!! Paul, you just pointed out the obvious little thing that had slipped my mind this time... Sure, that's way my perfectly good override wouldn't behave.. :D Tnx! God I love these forums!!

Dariusz Wlodarczyk

Thursday 06 November 2003 9:04:45 am

I have the same problem :(
Anybody knows the answer ?

Paul Forsyth

Thursday 06 November 2003 11:02:30 am

Try a couple of things:

Give all permissions to the anon user (* * *). That *should* work.

Try browsing to one of the nodes in question directly, eg.

http://<your-site>/content/view/full/XX

where XX is the node id you'll find in the admin.

If full permissions work then have a look to see if you've missed something. Have you given permissions for the new section too?

paul

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 19 2025 01:19:15
Script start
Timing: Jan 19 2025 01:19:15
Module start 'layout'
Timing: Jan 19 2025 01:19:15
Module start 'content'
Timing: Jan 19 2025 01:19:16
Module end 'content'
Timing: Jan 19 2025 01:19:16
Script end

Main resources:

Total runtime0.8576 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.1797152.6250
Module start 'layout' 0.00660.0031 741.804739.4453
Module start 'content' 0.00970.8459 781.2500686.2500
Module end 'content' 0.85570.0019 1,467.500016.1563
Script end 0.8576  1,483.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3789160.0002
Check MTime0.00130.1507160.0001
Mysql Total
Database connection0.00110.124210.0011
Mysqli_queries0.795392.7299720.0110
Looping result0.00080.0985700.0000
Template Total0.826896.420.4134
Template load0.00190.222920.0010
Template processing0.824896.174620.4124
Template load and register function0.00040.047510.0004
states
state_id_array0.00130.149810.0013
state_identifier_array0.00200.235820.0010
Override
Cache load0.00160.1858410.0000
Sytem overhead
Fetch class attribute can translate value0.00050.063950.0001
Fetch class attribute name0.00160.183690.0002
XML
Image XML parsing0.00180.209650.0004
class_abstraction
Instantiating content class attribute0.00000.001690.0000
General
dbfile0.00110.1256290.0000
String conversion0.00000.001240.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs