Wiki Page Categories
This patch is a preliminary implementation of wiki page categories (think: Wikipedia) for Redmine.
The patch is against Redmine 0.8.3. Watch it in action here:
Please note that I haven't written nor adapted any tests/fixtures yet. If you choose to adopt this patch, I'll catch up on this.
#2 Updated by Eric Davis over 12 years ago
I love the feature idea but we will need to have the patch apply to trunk and also to have some tests (especially for ApplicationHelper). Would you mind updating the patch?
Also the screencast was great. It really made it easy to see what functionality was included.
#3 Updated by Sven Schwyn over 12 years ago
- % Done changed from 80 to 100
I've applied the patch (with routes adapted) against the mirror on Github and added "Index by category" and "Pages without category" to the featureset. Furthermore, I've written a bunch of tests as well.
Shall I create a patch against the current master or do a pull request on Github?
#6 Updated by Sven Schwyn almost 12 years ago
I'm trying to clean up my contributions to a few projects before I loose the overview. This patch is several months now, do you see a chance to apply it any time soon? Or is there anything I can do to make this more likely to happen such as rebasing on Github or creating a new patch against the current trunk?
#7 Updated by Sven Schwyn almost 12 years ago
I've forked anew on Github and added the wiki page categories feature again. (Rebasing caused a funky issue I couldn't resolve.)
Please DON'T use the above patch, it has a bug which is fixed in this new commit on Github:
#8 Updated by Eric Davis almost 12 years ago
- File wiki-categories-3274.patch added
- Status changed from New to 7
I did a quick review of the patch (included) and the feature looks good. A concern I have is storing the categories as a delimited string on a wiki page. It makes querying for the categories harder (e.g. SQL LIKE) and requires the code to do a bunch of string processing to split and join them each time they are used. What if we use a full database model to store the Wiki categories and associte them with the wiki pages themselves?
#11 Updated by Sven Schwyn almost 12 years ago
Fair point, Jean-Philippe. I'm used to Mediawiki, so I took the approach from there which may or may not be a fit for Redmine. (However, I would have preferred to get opinions before doing the extra work, after all, it was easy to see from the screencast. Don't particularly like to code into the wastebin.)
Never mind, is there a particular tagging plugin you have in mind?
#12 Updated by Sven Schwyn almost 12 years ago
I've only used tagging once so far (with the acts-as-taggable-on plugin). From a UI point of view, would it be better to edit the tags on the "edit wiki page" view or directly in the sidebar?
By the way, I guess the reason why Mediawiki sets the page category (or tag) in the content itself is to include the page category (or tag) in the history.
#13 Updated by Sven Schwyn almost 12 years ago
I'll do an alternative implementation based on tagging. The tags will be displayed in the show view sidebar and can be edited in the edit view. (A future enhancement could be AJAX editing directly in the sidebar.)
I favour acts_as_taggable_on (as it's the only one I have used so far). Any other suggestions for the tagging plugin?