if I click on Folder1, Folder2 or Folder3 I want to load css file 1
it have to be active for all 3 folders, same in all other groups. I want to define 1 css file for one parent.
Supposing that folder1 and folder4 are at the same depth level, you only need to check for that in the node path array to know the current tree you are browsing and set the correct css for it. As an example, for folder1, folder2 and folder3, the path element 2 will be always the same.
hth!
--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205