Page 1 of 1

referencing my /cms sub-dir from the root using PHP include?

Posted: Mon Nov 14, 2005 8:32 am
by kenisswell
I have a pre-existing site where I have just installed CMSMS in the www.mysite.com/cms directory. I would like to keep CMSMS in the /www/cms sub-directory just to keep my site more organized (as opposed to installing CMSMS into the root) So how can I reference CMSMS Pages or Blobs from my site root (from outside the CMS directory)?

I was hoping I could use a php include (or something like) from my site's index.php that to "pull" a blob (or even a entire page) from my cms directory.  For example: from my /www/index.php I would include some blob from /www/cms/???)

Is that possible? Can someone show me a code example? Is there a better way?

Re: referencing my /cms sub-dir from the root using PHP include?

Posted: Tue Nov 15, 2005 8:17 pm
by slashman
I had the same issue- not wanting to muck up the root.  Calguy1000 offered the following explanation... you can find it here:
http://forum.cmsmadesimple.org/index.ph ... ml#msg9969

Right now I believe cmsms needs to reside under the root and the only workaround is modifying the htaccess file. Hope this helps.

Re: referencing my /cms sub-dir from the root using PHP include?

Posted: Wed Nov 16, 2005 7:31 am
by kenisswell
I saw that article, but I ended up moving cmsms to my root.

I also renamed a few of the CMS folders to help keep my root a little more organized (the ones that are listed in the config.php file; like /admin to /cms_admin).

It would be a nice feature if all the CMS sub-folder paths were referenced from the config.php. That way I could move all the CMS files and folders into a cms sub-directory (except index.php). and still use CMSMS at the root.