Ok, hopefully I can explain this more clearly. I am actually a bit confused now.
Tim, says the paths are relative to the resource and not the template. If that's the case page1 and page2 will need two different paths which is not possible with a single template.
Here's my issue again:
The file/resource, which here is page2 in subfolder2, is referencing a template outside its directory. So the paths in the template are not relative to the resource, they are relative to the template.
Here's the dir structure again:
folder 1_ _ _
Also, you say EL is not being evaluated for the icon attribute? That also doesn't make sense. EL should work for any attribute.
That came out wrong. The EL value is being evaluated but it evaluates to an incorrect path .
Context path in the source code page shows the path as 'app/app/folder/image.jpg' not 'app/folder/image.jpg',which is the correct path.
Here's the rich tag:
Here's the HTML:
I have regular HTML tags like <img> and <link> in the template as well. They work fine from the either page.