Manage your content with PHP
by Volker Weber
In this article we’ll build a simple, template-driven site that separates style, content, and structure in your website. We’ll create a cross-browser stylesheet switcher that remembers the user’s preferences, touching on php variables, cookies, if statements, and including pages with require_once.
The separation of style from content has become the bugbear of the HTML developer. Traditionally, we’ve used well-written CSS and XHTML to achieve this separation, and we’ve seen how much easier it is to update our sites or provide multiple styles when we write our markup this way. By adding some very basic PHP to this mix, we can take this modularity a step further, making it easier not only to update our styling, but our structure as well. In essence, we can create our own basic Content Management System.
Comments
A propos PHP & content management. Why reinventing the wheel? There are a number of opensource CMS based on MySQL and PHP out there.
The one I think is best by far is Typo3 http://www.typo3.com. A Danish project, it has a huge following. It is becoming a typomania in Germany. It is a bit tricky to start with, but after successfully having passed those first hurdles, typo3 offers endless possibilities. The user interface is nice and thought through. The soon coming extension manager is a real breakthrough.
It's opensource and can be downloaded from sourceforge (or via typo3.com). If you don't want to spend time on the server config, typo3server.de is offering a hosted typo3 preconfigered solution. Typo3server.de is also publishing a nice doc in German for the first steps.
Have fun...
Moritz
Post a comment
Recent comments
Volker Weber
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 01:14
Samuel Orsenne
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 00:02
Martin Rosenberg
on Danke Bahn, geht doch at 23:56
Volker Weber
on Things I learned while signing up for Bluehouse at 19:59
Mathias Ziolo
on Ubuntu for the Asus Eee Netbooks at 17:33
Stuart Mcintyre
on Things I learned while signing up for Bluehouse at 15:58
Flemming Riis
on Bluehouse does not support my browser at 15:30
Thomas Radigewski
on Bluehouse does not support my browser at 15:26
Stuart Mcintyre
on Bluehouse does not support my browser at 15:25
Volker Weber
on Bluehouse does not support my browser at 15:03
Stuart Mcintyre
on Bluehouse does not support my browser at 14:59
Daniel Haferkorn
on Bluehouse does not support my browser at 14:51
Ben Poole
on Bluehouse does not support my browser at 14:43
Petite Abeille
on XING expands into UK and Ireland at 10:50
Stuart Mcintyre
on XING expands into UK and Ireland at 10:47
Stuart Mcintyre
on XING expands into UK and Ireland at 10:42
Volker Weber
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 09:52
Stephan H. Wissel
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 04:39
Henning Heinz
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 22:32
Volker Weber
on Things I learned while signing up for Bluehouse at 22:09
Frank van Rijt
on Ubuntu for the Asus Eee Netbooks at 21:57
Jef Reynders
on Things I learned while signing up for Bluehouse at 21:56
Volker Weber
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 21:03
Yves Luther
on GoDaddy.com Launches New Hosted Microsoft Exchange Plans at 21:00
Jan-Piet Mens
on Things I learned while signing up for Bluehouse at 20:45



