Feature #6845

Add a real title field for wiki pages

Added by Holger Just almost 10 years ago. Updated almost 9 years ago.

Status:NewStart date:2010-11-07
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Currently, most people use a single h1. in the first line of a wiki page for the title. This is even integrated in most themes (like the default on on r.o) such that the contextual stuff is floated right of the assumed short header.

However, this practice is flawed as it prevents a usable inclusion of whole pages and leads to unnecessarily deep nesting of headings (see #5494). Thus, I propose to add a real title field to wiki pages to replace the top most h1.. This could even be coupled with the name of the wiki page to ease usage.


#1 Updated by Xiwen Cheng almost 10 years ago

I'm not sure if I understood your proposal correctly. But wouldn't this also be solved if a heading can be excluded from TOC generation? For instance, omit headings of the form

h1!, h2!, h3!, etc...

The exclamation mark deliberately replaces the dot such that existing pages does not break, thus backward-compatible. This has no impact on existing content/pages and themes. The wiki system will have to be extended slightly such that h1! is seen as an alias for h1. and the TOC generation can remain untouched as it will skip h1! anyway.

#2 Updated by Ebrahim Mohammadi over 9 years ago

This feature would be extremely useful, specially when used with alternative text editors such as redmine_ckeditor plugin which works with HTML.

#3 Updated by Hugues De Keyzer almost 9 years ago

I’m also in favor of this. I think it is strange that the title of a wiki page is part of its content (first h1. line). A wiki page has thus two titles:
  1. The page’s name, that is used as the page’s title (HTML <title>) and also shown above the text editor when editing a page. This value is also used as the page’s URL, and some characters can not be used in it. Because of this, a page called “Version 1.0” will be displayed as “Version 10”.
  2. The h1. title on the first line of the page’s content.

Moreover, it would be useful to be allow to use the period (dot, point) character in wiki page’s names and URLs, to be able to distinguish pages called “Version 1.2.34 release notes” and “Version 1.23.4 release notes”. If periods cause problems in URLs, they could possibly be replaced by underscores, for example, but not simply removed like they are now.

#4 Updated by Mischa The Evil almost 9 years ago

  • Subject changed from Add a real title field wiki pages to Add a real title field for wiki pages

#5 Updated by Tomasz Sawicki almost 9 years ago


Also available in: Atom PDF