diff options
author | Joey Hess <joey@kitenet.net> | 2008-05-12 14:38:17 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-05-12 14:38:17 -0400 |
commit | be81c594cea408309e68d78e405ab4a7097de4c4 (patch) | |
tree | 57aa176f34ca3f8e4c50ff80c7d6012bd6a2a9be /doc | |
parent | 21cd34106d4db3543ba3c7740c50415c3bdd7a4e (diff) | |
download | ikiwiki-be81c594cea408309e68d78e405ab4a7097de4c4.tar ikiwiki-be81c594cea408309e68d78e405ab4a7097de4c4.tar.gz |
thoughts
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/more_customisable_titlepage_function.mdwn | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/todo/more_customisable_titlepage_function.mdwn b/doc/todo/more_customisable_titlepage_function.mdwn index eb1d62448..51b560746 100644 --- a/doc/todo/more_customisable_titlepage_function.mdwn +++ b/doc/todo/more_customisable_titlepage_function.mdwn @@ -10,4 +10,22 @@ Another option would be a function I could define in the setup file, or an exter -- [[madduck]] +I don't think that changing titlepage is a good idea, there are +compatability problems. + +Instead, I think that in the specific case of the blogpost form, there +should be an interface to allow plugins to do arbitrary transformatiosn of +the page name. + +So, add a hidden field to blogpost.tmpl, something like blogpost=1. Then in +`editpage`, if blogpost is set, call the blogpost hooks, which are passed +a page name and return a transformed version. + +If the page name is changed by those, then the user's original title might +need to be preserved via a meta title directive. This could just be +inserted if any changes are made to the page name. Only problem with this +is that having the directive appear in the edit box for a new page could +confuse the user. The title could be passed on in a hidden field, and +prepended to the page when it's saved.. + [[wishlist]] |