Hi folks,
As I have a lot of static content on my website, I want to be able to use Mozilla composer to edit these pages, and wrap them up with a simple homegrown CMS (called Clio). I was hoping to isolate the static content in it's own directory.
Here is how the file system is laid out:
/clio
/clio/images
/clio/index.php
/clio/pages
/clio/pages/static.html
/clio/pages/images
/clio/pages/images/logo.jpg
The file index.php says at some point:
$clio_pages = "pages";
...
include "$clio_pages/static.html";
The file static.html includes an image tag referring to /clio/pages/images/logo.jpg (i.e. as images/logo.jpg) which works fine when we view it directly in Mozilla.
Of course, the image is broken when we call it up via the include in index.php, and it looks for the image /clio/images/logo.jpg, which does not exist.
The only thing I can think of is to read in the contents of the static file (as opposed to "include"ing it) and somehow re-writing all the URL's! Aaaa! Way too much effort for what this is worth.
I was hoping someone could offer a suggestion or a workaround that would help me out here.
Thanks!
mtoal