New Class Bug?

Author Message

Douglas Johnson

Tuesday 15 July 2003 1:06:10 pm

I create a new class but cannot access it with a fetch and appropriate ID number. Is there a bug or am I doing something wrong?

Thanks in advance; Doug Johnson

Jan Borsodi

Wednesday 16 July 2003 1:48:12 am

Could you show the fetch you tried to use?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Douglas Johnson

Wednesday 16 July 2003 2:36:07 pm

left_list=fetch(content,tree,hash(parent_node_id,$module_result.node_id,limit,23,sort_by,array(modified,true()),class_filter_type,include,class_filter_array,array(37)))}

37 is the class ID of the new class.

George Amaro

Tuesday 23 September 2003 7:05:01 am

I had the same problem, using 3.2...
After a new class was created from Article copy (of course changing its name), and using the following fetch:

{let news_list= fetch( content,
tree,
hash(
parent_node_id, 55,
limit, 1,
sort_by, array( published, false() ),
class_filter_type, include,
class_filter_array, array( 18 )
)
)
}

{section name=News loop=$news_list}
<tr>
<td>
{node_view_gui view=menu content_node=$News:item}
</td>
</tr>
{/section}
{section name=News loop=$news_list}
<tr>
<t">
<p class="readmore"><a href={concat("/content/view/full/", $News:item.node_id, "/")|ezurl}>{$News:item.name|wash}</a></p>
</td>
</tr>
{/section}

{/let}

Changing the class_filter to any class_ID other than the classes I've made it works well...

Any idea??

Paul Borgermans

Tuesday 23 September 2003 9:05:01 am

Is your new class in the policy list for anonymous user? Can you create objects in the admin interface based on your new class?

-paul

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

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 30 2025 22:22:54
Script start
Timing: Jan 30 2025 22:22:54
Module start 'layout'
Timing: Jan 30 2025 22:22:54
Module start 'content'
Timing: Jan 30 2025 22:22:54
Module end 'content'
Timing: Jan 30 2025 22:22:54
Script end

Main resources:

Total runtime0.0217 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0000151.1953
Module start 'layout' 0.00530.0040 739.1953220.6406
Module start 'content' 0.00930.0110 959.83591,001.7266
Module end 'content' 0.02030.0013 1,961.562533.9922
Script end 0.0217  1,995.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.2849140.0002
Check MTime0.00104.7925140.0001
Mysql Total
Database connection0.00073.099510.0007
Mysqli_queries0.002611.950130.0009
Looping result0.00000.078010.0000
Template Total0.00104.510.0010
Template load0.00083.458510.0008
Template processing0.00021.058410.0002
Override
Cache load0.00052.367210.0005
General
dbfile0.00021.134280.0000
String conversion0.00000.046140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs