[pmwiki-users] GUIButtons
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 6 08:43:16 CDT 2006
On Wed, Sep 06, 2006 at 09:24:04AM -0400, Henrik Bechmann wrote:
> Is there some way of associating the GUIButtons array with the
> Site.EditForm without including them in (farm)config.php?
Sure!
if ($action == 'edit') {
$GUIButtons['h2'] = ...
$GUIButtons['h3'] = ...
}
This loads the $GUIButtons array only if the person is editing.
The array entries can also be put into a separate php file and
then loaded with something like...
if ($action == 'edit') { include_once("$FarmD/local/guibuttons.php"); }
It's probably worth noting that PmWiki only loads the GUIButtons
when $action is 'edit'. (See scripts/stdconfig.php.)
Pm
More information about the pmwiki-users
mailing list