Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-14 16:44:57

Prodoc
New Member
Registered: 2007-02-14
Posts: 6

[request] Page revisions/history

I’m looking for a basic CMS and Textpattern looks promising.
The only thing I’m missing in basically all CMS’s I’ve looked at is page revisions or page history if you like. For specific pages I’d like to be able to provide users the option to look at the changes of the page. A dirty solution would be to archive a page and add a new one but this makes it hard for people to see the actual changes and we’re not really dealing with a new page, just a revision of one.

Would it be interesting to have revision support in Textpattern for more than just me? If yes, how difficult do you think it will be to create a plugin to add/integrate this functionality? Difficult as in will it require a lot of changes to Textpattern itself or is it worth while creating an extensive plugin while it would be easier to integrate it in Textpattern directly?

Offline

#2 2007-02-14 18:15:52

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Page revisions/history

Drupal has a great revisions capability and a diff module

I’ve long expressed interest in this capability for TXP, but there has not been much interest from others.

Try Drupal if you can stand the interface and lack of flexibility on the presentation end.

Offline

#3 2007-02-14 18:38:38

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: [request] Page revisions/history

There’s been some interest on it but no one to step up and do it. I honestly don’t really know how to approach it or else I would have coded it myself as it’s something I really want.


Shoving is the answer – pusher robot

Offline

#4 2007-02-14 19:05:12

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Page revisions/history

Architechture wise, this is how drupal does it.

  1. there’s a node table (equiv to Textpattern in TXP) that lists an article and it’s current revision number.
  2. there’s a revision table, that lists revisions and their parent article.
  3. On the “write page” you have a revisions tab, listing the current and previous revisions, their dates and their editors.
  4. A module (plugin) adds a “diff” tab which allows you to select an onld revision to compare against, and outputs a nicely styled (word-esque, track changes) diff page.

Works nicely. Intuitive. Users just seem to ‘get it’

TXPs content is a little less modular and flexible, so I don’t know how it could be done.

Offline

#5 2007-02-14 20:27:49

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] Page revisions/history

I think it can be done as a plugin without needing modifications to textpattern. It’s on my private TODO list, because I need this for one of my projects. Not just for articles, but also for forms, pages, stylesheets. I’d like to it working before the summer starts.

Offline

#6 2007-02-14 20:58:52

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Page revisions/history

Be happy to consult and collaborate… i have a lot of experience with the drupal equivalent…

Offline

#7 2007-02-15 09:58:19

Prodoc
New Member
Registered: 2007-02-14
Posts: 6

Re: [request] Page revisions/history

Thanks for the replies. It’s good to see that I’m not asking for just something I only need.
I have to admit that I don’t have the time to start on it myself. That is, I shouldn’t do it because of other work which should have highest priority ;-)
Maybe we can work this out together. I will have a quick look at both Textpattern and Drupal to see what a good approach could be.

Offline

#8 2007-02-15 15:55:15

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Page revisions/history

I have a live, populated, Drupal installation where you can check out how that CMS handles revisions. I’d be happy to active some accounts for those interested in pursuing this. Email me if you’re interested

Last edited by mrdale (2007-02-15 15:55:56)

Offline

#9 2007-02-15 16:09:32

Prodoc
New Member
Registered: 2007-02-14
Posts: 6

Re: [request] Page revisions/history

In addition to the Drupal diff module, I’d also would like to have the possibility to provide a history/changes link on the actual website front end for everyone to use instead of only in the back end section. This is my main requirement for getting the revision feature. From what I can tell from the website and provided info and images this isn’t possible with the Drupal diff module. Obviously normal users shouldn’t have the option to revert back to an older version of the content but they should be able to view the differences.

Offline

#10 2007-02-15 17:14:57

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [request] Page revisions/history

>Prodoc

What I’d recommend is:

  1. Start a new topic in Plugin Requests
  2. Clearly detail the specs you require of the plugin, and encourage others to contribute to the specs
  3. Offer a starting bounty, and…
  4. Ask interested users for contributions.

I’d chip in, and it seems that others would too.

Offline

#11 2007-02-15 17:38:17

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [request] Page revisions/history

Prodoc, what you’re looking for sounds more like a wiki with restrictions on what users can edit pages.

Offline

#12 2007-02-15 22:41:09

Prodoc
New Member
Registered: 2007-02-14
Posts: 6

Re: [request] Page revisions/history

ruud wrote:

Prodoc, what you’re looking for sounds more like a wiki with restrictions on what users can edit pages.

Not quite. A wiki will provide me with this functionality but the rest of the wiki is overkill. It’s also not necessary to provide a history for each page, only those were you choose to use revisions.

Offline

Board footer

Powered by FluxBB