Translations of this page?:

COMMON_PAGE_FROMTEMPLATE

Description:
enhance or replace namespace templates
DefaultAction:
variables in the passed page content are replaced
Preventable:
yes
Added:
2010-03-10
Removed:
2011-02-03

This event got replaced by COMMON_PAGETPL_LOAD in devel on 2011-02-03 and will not be available in subsequent stable releases.

This event is signaled by pageTemplate() in inc/common.php when a new page is to be created (loaded into the editor), handlers can use it to load their own namespace templates (by replacing $data['tpl']) or process the page content (by changing $data['tpl']).

Passed Data

  • $data['id']: The ID of the new page
  • $data['tpl']: The (unparsed) page template content

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

  • None yet

See also

devel/event/common_page_fromtemplate.txt · Last modified: 2011/05/25 11:21 by adrianlang
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate