Folder's contents is not visible

Author Message

Alek Andreev

Thursday 11 September 2003 11:32:09 am

Hi! I have a Folder class and a template that should display a link for each item in it. It is not working, though. Here's the view/full template for Folder:

{* Folder template *}

{default with_children=true()}
{default content_version=$node.contentobject_version_object}

<p class="psubtitle">{$node.name|wash}</p>
<p class="txt">
{attribute_view_gui attribute=$content_version.data_map.description}
</p>

<ul>
{section name=Child loop=fetch(content, list, hash(
parent_node_id, $node.node_id,
sort_by, $node.sort_array)}
{node_view_gui view=line content_node=$Child:item}
{/section}
</ul>

{/default}
{/let}
{/default}

Here's the view/line template for Info Page (the only type of items in the folder):

{default content_object=$node.object content_version=$node.contentobject_version_object}

<a href="{$content_version.url_alias|ezurl}">{$content_version.name}</a>
{/default}

I am using ezPublish 3.2 beta 2.

Paul Borgermans

Thursday 11 September 2003 1:33:03 pm

>Here's the view/line template for Info Page (the only
>type of items in the folder):

Shouldn't that be with $node.url_alias? Like:

<a href="{$node.url_alias|ezurl}">{$content_version.name}</a>
{/default}

-paul

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

Alek Andreev

Friday 12 September 2003 1:21:17 am

Yeah, you are right. It's still not working, though.

Bjørn Kaarstein

Friday 12 September 2003 1:40:10 am

Does your template show anything at all? If not, write a static text in the template, and make sure that it displays.
Turn on debugging in site.ini to see which template is being used.

[TemplateSettings]
Debug=enabled

Also, check your anonymous user role, and make sure it has sufficient rights.

Regards Bjørn

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 19:11:09
Script start
Timing: Jan 18 2025 19:11:09
Module start 'layout'
Timing: Jan 18 2025 19:11:09
Module start 'content'
Timing: Jan 18 2025 19:11:09
Module end 'content'
Timing: Jan 18 2025 19:11:09
Script end

Main resources:

Total runtime0.0304 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0201 589.0313152.6250
Module start 'layout' 0.02010.0028 741.656339.4453
Module start 'content' 0.02290.0052 781.101689.3047
Module end 'content' 0.02810.0022 870.406334.3047
Script end 0.0303  904.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00258.3125140.0002
Check MTime0.00123.8619140.0001
Mysql Total
Database connection0.012942.480310.0129
Mysqli_queries0.00248.062130.0008
Looping result0.00000.085610.0000
Template Total0.00185.810.0018
Template load0.00103.263010.0010
Template processing0.00082.558110.0008
Override
Cache load0.00072.301410.0007
General
dbfile0.00020.740280.0000
String conversion0.00000.029040.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