Menu

Commit [r3881]  Maximize  Restore  History

TracWiki: implement simple PageTemplates (#962)

The default content for a new wiki page can be chosen from a list of page templates.

This list is made up from the wiki pages having a name starting with ''PageTemplates/''.
The initial content of a new page will simply be the content of the chosen template page, or a blank page if the special ''(blank page)'' entry is selected. When there's actually no wiki pages matching that prefix, the initial content will always be the blank page and the list selector will not be shown (i.e. this matches the behavior we had up to now).

To create a new template, simply create a new page having a name starting with ''PageTemplates/''.

(Hint: one could even create a ''!PageTemplates/Template'' for facilitating the creation of new templates!)

cboos 2006-10-10

changed /trunk/htdocs/css/wiki.css
changed /trunk/templates/wiki_edit.html
changed /trunk/templates/wiki_view.html
changed /trunk/trac/wiki/model.py
changed /trunk/trac/wiki/web_ui.py
/trunk/htdocs/css/wiki.css Diff Switch to side-by-side view
Loading...
/trunk/templates/wiki_edit.html Diff Switch to side-by-side view
Loading...
/trunk/templates/wiki_view.html Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/model.py Diff Switch to side-by-side view
Loading...
/trunk/trac/wiki/web_ui.py Diff Switch to side-by-side view
Loading...