Is there any chance to show me how to make this work for 2nd and 3rd level node page alias.. i know it works with top level ...faglork wrote:Yes. The whole list is in the "classes" array ... just find out the length of the array, and then check forlollipop27 wrote: Is there a possibility to check if the 4th level node page-alias exists and then insert that one, otherwise check if the third level node page-alias exists, then take this one or if non of this works take a default picture?
classes[xx] down to classes[0] ...
You could even skip that array altogether. You could check for the file right there in the while loop which generates the array.
But it is okay with the array ... gives you more possibilities.
hth,
Alex
I'm a designer and don't know what to add in these lines... i know it has to check pages with images but don't know how to code it
