I have an issue with the "exists" tag in that it appears that it doesn't recognize absolute paths.
These Absolute paths don't work:
Only relative path works:
I'd prefer the absolute to the relative for the sake of future coders (including myself) looking at it and wondering "relative to WHERE???", not remembering that it's relative to the snippets folder.
Another issue: what if I subsequently move the snippets folder?
These Absolute paths don't work:
- Code: Select all
<cms:exists "/couch/uploads/image/mypic.jpg" />
OR
<cms:exists "http://thisdomain.com/couch/uploads/image/mypic.jpg" />
Only relative path works:
- Code: Select all
<cms:exists "../../couch/uploads/image/mypic.jpg" />
I'd prefer the absolute to the relative for the sake of future coders (including myself) looking at it and wondering "relative to WHERE???", not remembering that it's relative to the snippets folder.
Another issue: what if I subsequently move the snippets folder?