Forums / Setup & design / Best way to get folder short description in pagelayout.tpl

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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