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?
referencing my /cms sub-dir from the root using PHP include?
-
slashman
Re: referencing my /cms sub-dir from the root using PHP include?
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.
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.
-
kenisswell
Re: referencing my /cms sub-dir from the root using PHP include?
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.
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.
