Content Management Versioning

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
ashrust
Forum Newbie
Posts: 5
Joined: Sun Apr 30, 2006 6:52 am

Content Management Versioning

Post by ashrust »

Hi,

Wikipedia has a superb versioning system for its articles. Does anyone know how this works? Do they retain a complete copy of each edit or is there something more efficient being used?

Thanks in advance.

ASH
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Most WikiWiki implementations choose to use a diff or difference file that contains what has changed and where between the versions. Unless you need the site to be able to recall older versions I wouldn't build a difference engine into its code. Instead, I'd use a tool like CVS or better yet, Subversion (SVN.)
ashrust
Forum Newbie
Posts: 5
Joined: Sun Apr 30, 2006 6:52 am

Post by ashrust »

I am thinking about content management systems. All the ones I have built in the past don't record versions. This has been a problem for those using the system and also myself. If something goes wrong you have no recall.

So I guess I do want to keep some track of the content - is a diff/difference file the way to go?

If so where might I find out more on this?

thanks again

ASH
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

It is actually easier than you think to build a CMS on top of CVS or Subversion. This interfaces to them are very simple and straightforward. Give it a whirl and let us know if you come up with some useful code to share.
(#10850)
ashrust
Forum Newbie
Posts: 5
Joined: Sun Apr 30, 2006 6:52 am

Post by ashrust »

Thanks. I will get on the svn site and let the coding begin.
Post Reply