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.