Forums / Setup & design / How to use URI in the conditional statements?

"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".

How to use URI in the conditional statements?

Author Message

nga patel

Thursday 17 March 2005 9:30:31 am

Hi,
I am a beginner and I encountered a problem with URI in the pagelayout.tpl.
I have five elements in main menu and with all five sections, there is a different sub-menus and these submenus contains several number of elements. I want to set the page like that when I click on any element of main menu it comes with its submenu and when I click on any element inside the submenu the arrow is shown against that element.
Now for the first problem I have used one idea by putting following strings in the pagelayout.tpl file:

PARENT NODE ID : {$parent_node.node_id}
  {section show=$parent.node_id|eq(59)}
     
  
            {include uri="design:presentation.tpl"}
     
{/section}
  {section show=$node.node_id|eq(60)} 
  
            {include uri="design:notre_metier.tpl"}
   
   {/section}

In above example i had just give two element of main menu and i succeed into getting the corresponding sub menu.
But I think for the second problem with the presentation of arrow against element of submenu, the above way can work but it is not too logical.
For more detail you can refer the following site:
http://www.iclab.net
So, anyone could help me in this problem

Thanks for reading me.

Łukasz Serwatka

Thursday 17 March 2005 11:07:10 pm

Hi,

It`s great that you want to use eZ pub, welcome to Exponential community :)

I suppose that you have already read TSCM tutorial, if not it`s very good at the beginning.
http://ez.no/ez_publish/documentation/toc/(from)/36647

Have you read this document?
http://ez.no/ez_publish/documentation/customization/tips_tricks/creating_tree_menus

Some examples of code you can find also in double_top.tpl in design/base/templates/menu/

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog