[dokuwiki] Re: Specifying page template for new pages in URL

Jason Grout wrote:

I looked on the events list page at:

http://wiki.splitbrain.org/wiki:events_list

Are you referring to the HTML_EDITFORM_INJECTION or HTML_PAGE_FROMTEMPLATE events? It seems like the HTML_PAGE_FROMTEMPLATE might be an interesting one to look at.

Let me make sure that I understand the event system. I can register a callback function that will be called when the event is triggered. From the documentation and the source in html_edit, it appears that the only information I have to work with in the HTML_PAGE_FROMTEMPLATE is the ID of the page being created. That's not enough for my purposes (I can't necessarily tell what template I want just from the namespace), though it's a start. Is there a way to access the URL parameters from the event callback? I'm sorry if I seem to have a fixation on the URL parameters, but it's the only way I can think of passing the name of a desired template to the create/edit page.

Thanks,

Jason

Sure,  $_GET['my_var'] !
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: