Forums / Developer / Strange behaviour with section show param

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

Strange behaviour with section show param

Author Message

Marcus Ilgner

Wednesday 19 November 2003 7:18:39 am

Hi,

I'm trying to write a template that displays the news articles from a folder structure in multiple columns. The maximum number of items in a column is also defined.
So I tried to write a section statement like this:

{section loop=$NEWSITEMS offset=$NEWS_WRITTEN_FOLDER max=$MAX_HEIGHT show=$NEWS_WRITTEN_COLUMN|lt($MAX_HEIGHT)}

But the section is also shown when NEWS_WRITTEN_COLUMN is larger than MAX_HEIGHT. Any ideas why this is? I already tried to display the content of the variables and the result of the lt-operation in each item and their values are ok (e.g. 1 for the articles which should be shown)
And can anyone tell me when it will be possible to access variables from the parent namespace in a set-command?
Atm I have 3 nested sections in one namespace because the innermost loop has to set variables from the root namespace.

Greetings
Marcus

Marcus Ilgner

Tuesday 25 November 2003 2:07:11 am

Ok, I got around this one by specifiying
{section-exclude match=$NEWS_WRITTEN_COLUMN|ge($MAX_HEIGHT)}

During debugging I got the expression that while HTML code in a section for which show==false isn't shown, other Exponential code got executed nonetheless (set commands).
Section-exclude avoids this.