Forums / General / if node exists in $module_result.path then view code (JS)

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

if node exists in $module_result.path then view code (JS)

Author Message

Łukasz Serwatka

Wednesday 08 December 2004 9:43:09 am

Hi,

I have three folders with children.

Folder 1
Node id 12
- child id 13
- child id 14
- child id 15
- child id NN

Folder 2
Node id 21
- child id 22
- child id 23
- child id 24
- child id NN

Folder 3
Node id 123
- child id 124
- child id 125
- child id 126
- child id NN

Problem:

In pagelayout.tpl i must view code (JS) other for folder 1 and his children and other for folder 2 and 3. I have idea do this with $module_result.path. Is this a good idea?

Thanks for any help.

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