jocms icon indicating copy to clipboard operation
jocms copied to clipboard

Currently only working in root directory?

Open Rechi86 opened this issue 4 years ago • 9 comments

First of all thanks for this great product, as a long time user of coast cms, jocms seems like a possible successor. During my tests of the systems it seemed to only work if installed in the root directory (www.test.com/jocms/), it would be nice to have the option to use it also within directories, also for local development (www.test.com/test1/jocms/ or localhost/test1/jocms) I've also sent a short mail to your address concerning professional usage, just wanted to make sure, you've got it.

Rechi86 avatar Sep 09 '20 13:09 Rechi86

Hello, I also set up jocms in sub directory.

It looks like if I set "JO_ROOT", it will be OK. If so, please let me know where and how to set "JO_ROOT".

gem3 avatar Oct 13 '20 08:10 gem3

Hello, I also set up jocms in sub directory.

It looks like if I set "JO_ROOT", it will be OK. If so, please let me know where and how to set "JO_ROOT".

the main problem is that html code and ajax requests uses paths relative to root so you need to edit paths in php, css and js files

mclvren avatar Oct 13 '20 18:10 mclvren

Hello,

Thank you for your reply.

It seems not easy, so I will install in root directory.

By the way, I made a language-file. Shall I sent this to you by e-mail?

gem3 avatar Oct 14 '20 04:10 gem3

Gran trabajo. Simple pero practico.

dcerveral avatar Oct 31 '20 20:10 dcerveral

How can someone develop a software, which is intended to run on 'root' only? Sometimes i really have to scratch my head .. people!

orionseye avatar Nov 16 '20 19:11 orionseye

@mclvren is right, its not so easy to change the directory rn. In its current version, jocms should be installed in the root directory.

mxgbr avatar Nov 17 '20 08:11 mxgbr

Is there any way to deploy jocms in a subfolder? This would offer many many more use cases! Maybe there is a tutorial to manually change the directories or something like this?

donjenso avatar Feb 26 '21 18:02 donjenso

@donjenso did you even read the whole topic here?

WebCrew avatar Sep 12 '21 01:09 WebCrew

Hi, I'm not sure if this helps anyone or if I understand the OP's question, but I could edit other pages in subdirectories of my static site by putting the full path in the corresponding url parameter. E.g. I installed jocm in the root directory but wanted to edit /pages/mypage.html so I went to https://www.your-site.xyz/jocms/control/cms.php?path=%2Fpages%2Fmypage.html and jocms seemed to work fine!

camcnelson avatar Mar 10 '22 01:03 camcnelson