Best way to get folder short description in pagelayout.tpl

Author Message

John Smith

Tuesday 08 April 2008 8:17:08 am

Hi there,

Hope someone can help me.

I am messing with the following structure:

Root
  |---->Folder 1
            |-->Folder 2
                      |--> Folder 3
                                |--> Article 1

When I am in Folder 1, I want to print Folder 1 short description, now on Folder 2 onwards I always want to print Folder2 short description doesnot matter I am Folder3 or article1.

What is the best way to get that sort of results.

Cheers

Stéphane Bullier

Tuesday 08 April 2008 10:44:54 am

Hello,

You can try to test the {$node.depth}.

{if le($node.depth, '3' )}
{attribute_view_gui attribute=$node.data_map.short_description}
{else}
No short description
{/if} 

Stéphane

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.