Forums / Developer / How to set the 'show' parameter for the 'section' function?

"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 set the 'show' parameter for the 'section' function?

Author Message

Iris Hoekstra - Roscam Abbing

Thursday 01 April 2004 2:19:30 am

Hi there,

I am trying to write some code which is only executed if a certain condition is met.

I do this:
{section show=$DesignKeys:used.class|eq(1)}
conditional code goes here
{section-else}
do nothing
{/section

I also print out $DesignKeys:used.class to the screen, and there I can see that it is in fact 13. But the conditional code is still executed. What am I doing wrong?

Paul Forsyth

Thursday 01 April 2004 3:45:34 am

Try:

{section show=eq($DesignKeys:used.class,1)}
conditional code goes here
{section-else}
do nothing
{/section}

paul