00415: GUI buttons when using page template

Summary: GUI buttons when using page template
Created: 2005-04-03 05:09
Status: Closed - not a bug
Category: Bug
From: JH
Priority: 4
Version: 2.0beta26+
OS: sci.tamucc.edu

Description: When a page template has been specified and $EnableGUIButtons=1, the edit page uses the template but the GUI buttons do not appear.

If the page template is disabled by using something like:

     if ($action != "edit") {
     $PageTemplateFmt = 'pub/skins/Chem/Chem.tmpl'; }

the buttons appear and the default page template is used.

This isn't a bug in PmWiki itself, the Chem.tmpl file is missing the <!--HeaderText--> directive, which the GUI button code needs in order to load the appropriate javascript support functions.