[pmwiki-users] GUIButtons
Henrik Bechmann
henrik.bechmann at sympatico.ca
Wed Sep 6 09:45:55 CDT 2006
Beauty! Nice 'n' tidy.
( I chose
if ($action == 'edit') { include_once("$FarmD/local/guibuttons.php"); }
)
- Henrik
Patrick R. Michaud wrote:
> 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
>
>
--
Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca
More information about the pmwiki-users
mailing list