[dokuwiki] Re: Specifying page template for new pages in URL
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 23 Feb 2007 02:50:34 +0000
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
- Follow-Ups:
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- References:
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Anthony . Caetano
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Andreas Gohr
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
Other related posts:
- » [dokuwiki] Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
I looked on the events list page at: http://wiki.splitbrain.org/wiki:events_listAre 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
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Anthony . Caetano
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Andreas Gohr
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout