Prerequisites:
EvolvitCMS needs at least PHP 7.0.0 to run.
Sqlite php extension mora postojati (po defaultu je ukljucena u php-u 7)
instalacija
Skinuti i raspakovati zip sa (URL odje) u root folder web servera
Isto uradite i ako već imate napravljen sajt (HTML/PHP) tj fajlove+foldere TODO: ljepse objasnjenje
Nakon toga potrebno je napraviti admin usera na linku
VašDomen/cms/admin (npr localhost/mysite/cms/admin ili mysite.com/cms/admin)
Sada je cms spreman za korišćenje.
Login je na istom linku ( cms/admin ):
Sada, na Schema / Add new schema mozemo napraviti novu schemu tj tabelu u bazi, npr News:
Nakon toga dodajemo nova polja (fields) u tabelu i za svaki field definisemo Name i Type
Polja u News tabeli mogu biti npr.
Field Name | Field type |
Title | String |
Date | Date |
Link | String |
Text | Long string |
Time smo napravili interfejs za administraciju i servise za select/insert/update i delete.
Sada bi Home u cms-u trebao da izgleda ovako:
Klikom na Home / News se dobija lista novosti (koja je sada prazna).
Popunite je nekim podacima, npr:
Postoje 2 opcije:
prva je da koristis php. U tom slucaju je dovoljno da se u postojeci ili novi php fajl includuje cms/engine.php fajl
<?php include("cms/engine.php");?>
Content tj array-e iz cms-a dobijate sa:
<?php $arr = fetch("ImeTabele"); ?>
, npr: <?php $News = fetch("News"); ?>
U CMS-u / schema / PHP template se generise php code koji moze da se copy/pastuje
EvolvitCMS is a Fast, Simple, and Flexible php/sqlite based Web platform.
There is Zero installation required.
Just extract the ZIP archive, and you are already up and running.
TODO: opisati sve stavke iz cms-a cemu sluze
file structure:
/cms/ <-- engine
/twigtemplate/ <-- twig templates here, if requested file do not exist, .htaccess rewrite rule will serve it from here
.htaccess <--
.htaccess sadrzi samo par rewrite rulova i to:
Ukoliko zahtevani fajl postoji na filesistemu bice serviran
Ukoliko zahtevani fajl ne postoji - rewrite rule ce pokusati da servira fajl sa istim imenom iz /twigtemplate/
putanja site/img/imagename will serve image from CMS (odje referenca treba)
Features:
ne mora da se uci nista novo
ne namece nista/ne smeta prilikom dizajniranja
ne zahtjeva instalaciju tj ssh vec samo copy paste
pogodan i za nove i za postojece sajtove
za red velicine brzi od wp
moze da radi na svakom najobicnijem najjeftinijem shared hostingu
ne treba ni nodejs ni npm ni composer
ne zavisite od tudjih servera, sve je hostovano kod vas
Mozda treba napomenuti da je zgodan za situaciju
kada developer napravi fantastican mali brzi staticni sajt u cistom html/css-u
a nakon toga kupac kaze - e a jel mogu ja sad sam da uploadujem sliku na index stranici i da mogu da menjam text (iako realno to nikad nece uraditi).
Tda nastaje agonija za developera i uskoro dolazi do saznanja da mora sve sto je radio da baci i da sve preradi iz pocetka koristeci neku nametnutu filozofiju.
Umesto toga - copy/paste evolvitCMS, nista ne dira osim te stranice dje treba da se doda mogucnost administriranja
Evo ga post sa redita dje cova tacno opisuje taj slucaj link :
Simple, lightweight CMS for a existing HTML5 site.
Hi people...
I create an small site (1-3 page max) with bootstrap.
Like landing page, pages for events, etc etc... nothing really complicated.
Them I need to change text like 100 of time until is finally approved.
I'm looking for a way for other person to edit this page.
Just text, maybe change the pictures.
As you see, nothing really complicated.
As can I imagine this in my head is just a back-end and them after login, they can:
A. Go to the frontend and change text directly, maybe images
or
B. In the back end, have modules where you change the text.
Is a really simple, basic, CMS.
As you see for this situation, Wordpress / Drupal / Joolma is overkill. Too complicated for what I need.
I dont need plugins, comments, users, themes.
Also, I dont have access to SSH on the server, I just have access to FTP. I said this because I checked some solutions and the required to install the CMS over the terminal.
TODO:
backup - auto/manual,
initial install/user/pass setup, (done)
mozda posebna baza za usere,
sql editor,
role,
markdown,
bolji sort dragdrop,
auth za comments example,
login x attempts,
email forgotten pass
main menu vidljivost po rolama
created_by, updated_by, created_date, updated_date
popravi schema/example twig i php za single obj