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

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