shaack / reboot-cms Goto Github PK
View Code? Open in Web Editor NEWA flat file, Markdown CMS in PHP with blocks structure.
License: MIT License
A flat file, Markdown CMS in PHP with blocks structure.
License: MIT License
Wanted to try this out in a test environment, so I stuck it on a Dreamhost box in a sub-folder but nothing seems to be working correctly :(
Here are my first few steps which I think have helped:
myhost.com/rebootcms/ just gives a 404
In the .htaccess file, change the rewrite rule to remove the leading slash from web:
RewriteRule (.*) web/$1 [L]
myhost.com/rebootcms/web/ Shows the beginning of the page, but none of the assets are loading, and there is a 404 error being generated within the page (RebootCMS, Home and Documentation links are all there).
Editing the /sites/default/template.php file so that the base reads:
<base href="<?= $site->getWebPath() ?>/web/" />
and then changing all the links to be relative by removing the leading / means that the page renders with CSS and JS properly.
I also edited the /sites/default/pages/index.md to make the image references relative, so that they would work too, but I didn't want to delve too much further. Once I started poking with the admin, I ran in to a lot of issues that I think are related. At some point I will spin up a subdomain so that I can stick it in the root folder and have it work properly :)
Don't know if this counts as an "bug" or a "feature" - feel free to close if the plan is to only be working in the root directory.
Hi, thank you very much, really exciting project!
I just installed and looks very nice! But when I try to enter to the admin, I get this error (in Firefox):
"The page isn’t redirecting properly"
Is it possible to do something about it?
Thank you very much!
Will be interpreted as block divider.
this
<link href="/themes/default/assets/style/default.css" rel="stylesheet">
=> to this
<link href="${$this->themePath}/assets/style/default.css" rel="stylesheet">
The new structure will be:
I like the simple structure used to run the cms. thanks for that!
my problem: I installed the cms on a local apache in a subfolder. the frontend also works without any problems. But I can't log in to the admin dashboard. I'm always redirected to http://localhost/subfolder/admin/login
and get an error in the browser 'ERR_TOO_MANY_REDIRECTS'. Unfortunately, an entry in the .htaccess
file with RewriteBase /subfolder
was of no use. Any ideas? Unfortunately, my PHP skills are a little rusty, so I can't solve the problem myself quickly.
Thanks.
https://shaack.com/not-existing => correct 404
https://shaack.com/not-existing.css => 404 without content
Could later be implementier as plugin.
Please Check PR #24
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.