GithubHelp home page GithubHelp logo

shaack / reboot-cms Goto Github PK

View Code? Open in Web Editor NEW
31.0 6.0 4.0 4.78 MB

A flat file, Markdown CMS in PHP with blocks structure.

License: MIT License

PHP 93.83% CSS 0.39% SCSS 5.78%
php markdown-cms markdown cms bootstrap flat-file-cms no-database

reboot-cms's Issues

Installing in a sub-folder doesn't work out of the box

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.

"The page isn’t redirecting properly" when entering admin URL

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!

Allow includes relative to theme

this
<link href="/themes/default/assets/style/default.css" rel="stylesheet">
=> to this
<link href="${$this->themePath}/assets/style/default.css" rel="stylesheet">

Put /web into /site

The new structure will be:

  • /site
    • /web
      • /assets
      • /media
      • /node_modules (etc.)
    • /blocks
    • /pages
    • config.yml
    • template.php

/admin-page - ERR_TOO_MANY_REDIRECTS

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.