Good file based CMS?
Moderator: General Moderators
Good file based CMS?
Looking for a good file based CMS. It can use a database but I like creating pages by creating a new file and writing xhtml... Any recommendations? Problems I see with Drupal, Wordpress, & Joomla is that they are centered around storing content in the database. I know you could technically modify any of those but I'm looking for something way simple, like to manage my menus & could use Zend Framework MVC routes for my URLs.... but maybe more like image gallery, ability to comment on pages, and some simple stuff.
Re: Good file based CMS?
The CMS I've been working on is based on files. You can check it out at http://snippetdemo.omniimpact.com.
It's under GPL if you want it, but I'll warn you, I haven't worked with the base code in several years, so I can't guarantee that it's very good quality code.
It's under GPL if you want it, but I'll warn you, I haven't worked with the base code in several years, so I can't guarantee that it's very good quality code.
Re: Good file based CMS?
Does it organize menus hierarchically? Where can I see the code?
Re: Good file based CMS?
Right now, the page manager is really basic. It doesn't actually create the menus, but one of my projects over the break is to re-write that. So far, I've created a simple registry class that uses a serialized array in a file to hold information. This could be used to add the ability to create pages and reorganize a menu. At the moment, I just provide a convenience function for correctly including the .snippet file that represents each page. I just use a switch() statement in the index.php and include the corresponding HTML when needed.
I can send you a copy of the code if you'd like, but please, don't judge me. A lot of it needs to be re-written before a "Snippet 3.0" release.
I've been too busy with school to actually rewrite what I've needed to. I want to make it all nice and object oriented, and build a real plugin system (so you just upload a plugin, and it becomes available), but all of that takes time. The newer plugins I've written are much better coded than most of this old codebase. The main strength in Snippet (for me, anyway) lies in how easily I can create a new plugin to do x, y, or z for a client. I've made the existing plugins really easy to use, and, in fact, the idea is that dumb client's can't mess up their own pages by deleting things they don't mean to etc. Honestly, it's probably far to crude for what you need it for
, but hey, I like it personally, so I figured I'd mention it.
That said, I'd be happy to send you the code if you like. Since it is GPL, you're welcome to mess with it all you like, but I'd appreciate it if you keep my name around somewhere.
I can send you a copy of the code if you'd like, but please, don't judge me. A lot of it needs to be re-written before a "Snippet 3.0" release.
That said, I'd be happy to send you the code if you like. Since it is GPL, you're welcome to mess with it all you like, but I'd appreciate it if you keep my name around somewhere.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Good file based CMS?
I experimented with something very similar a few years ago and I have to tell you...using a database and .htaccess for SEF/SEO URI's makes things so much easier.
http://www.sourceforge.net/projects/texocms
Nothing fancy like menus, etc. You could easily build your own modules to use a XML file or INI file or even the directory structure (for things like breadcrumbs) but I intentionally left those out.
Also it does allow *any* file to be uploaded so care must be taken when letting anyone login to the system. I had at one itme someone upload a PHP script disguised as a GIF and when executed or invoked let them muck up my system.
It is file based but uses a templated approach (two step view) much like how sites were built 8-10 years ago but with a basic CMS to assist in managing the page content.
I obviously wouldn't normally suggest anyone use this technique anymore as it's inferior to a system like Joomla, but I assume if you explicitly request file based you obviously need that for a reason.
Cheers,
Alex
http://www.sourceforge.net/projects/texocms
Nothing fancy like menus, etc. You could easily build your own modules to use a XML file or INI file or even the directory structure (for things like breadcrumbs) but I intentionally left those out.
Also it does allow *any* file to be uploaded so care must be taken when letting anyone login to the system. I had at one itme someone upload a PHP script disguised as a GIF and when executed or invoked let them muck up my system.
It is file based but uses a templated approach (two step view) much like how sites were built 8-10 years ago but with a basic CMS to assist in managing the page content.
I obviously wouldn't normally suggest anyone use this technique anymore as it's inferior to a system like Joomla, but I assume if you explicitly request file based you obviously need that for a reason.
Cheers,
Alex
Re: Good file based CMS?
Can you explain that or elaborate some more?PCSpectra wrote:using a database and .htaccess for SEF/SEO URI's makes things so much easier.
I find it rather troublesome to edit the .htaccess every time. Or do you mean a 'smart' .htaccess where the actual redirection / binding SEF URI's to the right PHP's is actually happening inside php?
Re: Good file based CMS?
I like the way Joomla handles things, and I'm sure that other frameworks do things similarly - run everything through index.php (mvc, of course) - rewrite the URLs and call a router routine for the requested component to handle the query strings.
Re: Good file based CMS?
The author of Joomla has written a book on CMS design with PHP.It's a good read, although it has to be printed on demand.
In my CMS, there is only one place you can upload "anything" and it would be really easy to add an exception for PHP files.
In my CMS, there is only one place you can upload "anything" and it would be really easy to add an exception for PHP files.
Re: Good file based CMS?
What is the book title? Where it can be ordered? Or read online?omniuni wrote:The author of Joomla has written a book on CMS design with PHP.It's a good read, although it has to be printed on demand.
In my CMS, there is only one place you can upload "anything" and it would be really easy to add an exception for PHP files.
Re: Good file based CMS?
Sure. Like you said probably not what I need but I'd be happy to look... Will not judge unless it asked for me to judge.omniuni wrote:, I'd be happy to send you the code if you like. .
I would like to use an approach like Zend Framework does with it's routes, but Zend_Navigation leaves lots to be desired. I may just end up using that for my menus though, and rolling my own way to define "page relationships" with an XML file that accompanies the page. And will probably grab an off the shelf gallery script like zen gallery. Not sure yet.PCSpectra wrote:I experimented with something very similar a few years ago and I have to tell you...using a database and .htaccess for SEF/SEO URI's makes things so much easier.
I like the way Zend handles URLs because you tell it:
- my route is named "about_featureX"
- my route corresponds to Module: about, controller: features, action: x, and whatever parameters you need
- the URL pattern {insert pattern here} should map to this route
Then when you link to the page you use the route name only, so later the controller or modules could be re-organized. How does Joomla handle change? For instance if I want to rename just my modules, I can do so without affecting any of the linking pages, and without changing the URLs. If I want to change just the URL, I can...
My existing implementation just uses Zend_View for templates, and everything else is being done by hand. Not a big problem yet but as I roll out more pages I could foresee the need to change them
I was also looking for the same kind of thing for external links. It could use a database back-end but I prefer to not have to open a web browser, to for instance edit a page.
Just for your reference since the thread is getting some response, these are the pages I am generating: (these features pages)
http://vehiclefits.com/about/faceted.php, http://vehiclefits.com/modules/paint.php, http://vehiclefits.com/modules/wheel.php etc...
My Main reasons for wanting a CMS is to abstract the URLs, and maybe abstract the little idiom I was following at the bottom of each page with the related pages and related videos and such. If you notice on some pages I have related news and they are outbound links as well.
Maybe I need to just learn XSLT.