blob: aade457d054c9988e76650fbc7b2571e925120f3 (
plain)
This is a plugin that prompts the user for a title for a post, and then
redirects the user to post in a hierarchically organized directory
structure. It supports limiting blog posts only to certain users, and
this applies to creating new as well as editing old ones. It's a little
clumsy so far:
- Although Joey said specifically not to, I export the printheader
function so that the plugin can create a form.
- The form doesn't invoke the formbuilder hooks; I couldn't figure
out a way to do that easily from inside the plugin (unless I
exported run_hooks and that didn't seem right).
- This invokes a new hook, authcgi, although Joey said that
"the best approach was adding a flag that makes a cgi hook get
postponed and called after a session is set up". I don't know
if this is a good idea; authenticated CGI plugins need sessions,
and unauthenticated CGI plugins don't, so it seems like a new hook
is a better idea.
- This creates a lot of broken parents unless you use something
like [[missingparents.pm]].
I don't expect that this will be applied; it's more like a first draft.
I would like to hear good ideas on how to solve the first two problems.
Maybe make the hook return a form, which is printed by CGI.pm? --Ethan
[[tag patch]]
|