====== COMMON_PAGE_FROMTEMPLATE ====== ---- dataentry event ---- Description: enhance or replace namespace templates DefaultAction: variables in the passed page content are replaced Preventable: yes Added_dt: 2010-03-10 Removed_dt: 2011-02-03 ---- **This event got replaced by [[devel:event:common_pagetpl_load|COMMON_PAGETPL_LOAD]] in devel on 2011-02-03 and will not be available in subsequent stable releases.** This event is signaled by [[xref>pageTemplate()]] in [[xref>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 ===== See also ===== * [[codesearch>COMMON_PAGE_FROMTEMPLATE|Code related to this event]] used in any DokuWiki's files, plugins and templates * [[devel:Action Plugins]] * [[devel:Events]] * This event replaces [[devel:event:HTML_PAGE_FROMTEMPLATE]]