Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: page templates #58

Closed
oshaughnessy opened this issue Sep 18, 2012 · 2 comments
Closed

feature request: page templates #58

oshaughnessy opened this issue Sep 18, 2012 · 2 comments

Comments

@oshaughnessy
Copy link

One of my favorite features from MediaWiki is Templates. I'd love to see something similar in django-wiki. Templates are so useful for standardizing the way you create certain types of documents.

The basic usage model as I used it was to create a template page for each type of document that I want people to create. Then when people create new pages, there's a very clear set of choices for how they might lay out their content. It's also fantastic as an aid when learning the wiki syntax because it can give you a lot of examples using whatever conventions are common on the site.

In MediaWiki, selecting a template on a new or existing page will overwrite whatever is in the page currently. I don't know if that's good or bad -- once you know how it behaves, you adapt accordingly. That features isn't important to me, but the ability to lay out standard document styles and then to let people see them on page creation is.

@benjaoming
Copy link
Member

This is related to #51 - which is scheduled to be done sooner or later :)

It has to be done through revisions, so you can always revert. But I wouldn't think that having to replace content or have special content fields for templates would be necessary. I'd stick to the usual article + plugins structure. But the template can decide what to do with the plugins and whether to have further embedded articles (django-wiki is designed to have the possibility of embedding an article anywhere.. it's just not done yet).

@tkliuxing
Copy link
Contributor

@oshaughnessy Pull request #320 implemented this requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants