#962 closed enhancement (fixed)
Customizable Default Wiki Text
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | wiki system | Version: | none |
Severity: | normal | Keywords: | PageTemplates |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It's handy to be able to change the default wiki text from "describe PageName here" to "= PageName =", etc…
Possible implimentation could use configuration or search for a wiki page called WikiDefaultText.
Attachments (1)
Change History (12)
comment:1 by , 20 years ago
Component: | general → wiki |
---|---|
Severity: | normal → enhancement |
comment:2 by , 20 years ago
comment:4 by , 20 years ago
#1470 has been marked as duplicate of this ticket. It also provides a patch.
comment:5 by , 19 years ago
I definitely prefer being able to select from one of several page templates when creating pages.
Those templates would have to be customizable, of course. Some other Wikis allow this simply by appending "Template" to the page name. Perhaps a special PageTemplates wiki might be a better approach.
For example, if we created PageTemplates/MeetingMinutes, PageTemplates/Requirement, and PageTemplates/Blog in our Wiki instance, "MeetingMinutes", "Requirement", and "Blog" would appear in our page template list whenever we edit a page for the first time.
comment:6 by , 18 years ago
#2179 has been marked as a duplicate of this ticket. It also provides a patch.
comment:7 by , 18 years ago
Keywords: | page templates added |
---|---|
Milestone: | → 0.11 |
Owner: | changed from | to
Status: | new → assigned |
#3859 was also marked as duplicate… I guess it's about time to implement this ;)
Proposal
If no PageTemplates/… page exist, simply behave as usual. If there are some, there will be a select field to pick one of those next to the Edit button for a non-existing page. We'd need some mechanism to specify the default template too, maybe just picking PageTemplates/Default if it exists, otherwise selecting the empty option, which would mean start with a blank page.
Implementation follows…
by , 18 years ago
Attachment: | wiki_page_templates-r3886.patch added |
---|
Implements the PageTemplates/… idea.
follow-up: 9 comment:8 by , 18 years ago
Please try out attachment:wiki_page_templates-r3886.patch
One thing that could be changed is to make configurable the name of the default template, as PageTemplates/Default is perhaps not that obvious (could as well have been PageTemplates/WikiPage).
Anyway, I guess a new PagesTemplates explaining the feature would have to be added.
Note that the user interface is not changed at all from the former one if there are no PageTemplates/… pages.
Finally, the WikiPage.select_names
could be reused in a few places (PageIndexMacro and WikiSystem come to mind).
comment:9 by , 18 years ago
Replying to cboos:
Please try out attachment:wiki_page_templates-r3886.patch
One thing that could be changed is to make configurable the name of the default template, as PageTemplates/Default is perhaps not that obvious (could as well have been PageTemplates/WikiPage).
I don't see a reason to configure it, though PageTemplates/DefaultPage would be CamelCase, so it's easier to link to. I think adding the PageTemplates page with a link to the default template would be fine.
comment:10 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Ok, so let's keep PageTemplates/DefaultPage.
Slightly refined patch applied in r3881 (now the PageTemplates/ prefix doesn't appear in the list anymore, that's a bit nicer).
comment:11 by , 7 years ago
Keywords: | PageTemplates added; page templates removed |
---|
I like this idea. I'd just like to add that multi-line text should be possible. When I found this ticket I was originally going to suggest adding a newline to the end of the standard "Describe WikiPage here" text because often I'm about to paste something in and want what I paste to be separate from the text that's already there (which I don't dare select with the mouse when I'm about to paste something).