[pmwiki-users] Custom buttons in Site.EditForm

Ian MacGregor lists at imacgregor.com
Thu Jul 26 02:44:04 CDT 2007


On Thursday 26 July 2007 12:29:40 am you wrote:
> >From: Ian MacGregor <lists at imacgregor.com>
> >Subject: [pmwiki-users] Custom buttons in Site.EditForm
> >To: "pmwiki-users" <pmwiki-users at pmichaud.com>
> >
> >I ran across a way to have custom buttons and layouts in Site.EditForm
>
> and I
>
> >wanted to let people know about this nice recipe. The recipe is at
> >http://www.pmwiki.org/wiki/Cookbook/GuiEdit and I have followed this to
> >
> >create a beautiful layout in my edit form.
>
> Thanks for providing that tip. I've now made my GUI a lot nicer but have
> run into an odd problem:
>
> I have two additional buttons at the end of my second row of toolbars:
> italic and bold.
>
> My toolbar is shown here:
> http://img329.imageshack.us/img329/1690/20070726102450nw7.jpg
>
> I have no idea where these two buttons are appearing from! They're not
> in my config.php file but still they appear!
Have a look at the SDVA($GUIButtons, array in scripts/guiedit.php. There are 
several buttons listed there (lines 29 - 51) which will appear in your 
toolbar in the edit form. If you add these to your toolbar in config.php, 
that will override the ones in guiedit.php and you can place them where you 
want them. I had a heck of a time trying to figure out this problem until I 
read scripts/guiedit.php and quickly saw the problem.

Regards,
Ian MacGregor

>
>
> Regards,
> Melvyn
>
>
> ___________________________________________________________________________
>_______________ This electronic message contains information from Verint
> Systems, which may be privileged and confidential. The information is
> intended to be for the use of the individual(s)or entity named above. If
> you are not the intended recipient, be aware that any disclosure, copying,
> distribution or use of the contents of this information is prohibited. If
> you have received this electronic message in error, please notify us by
> replying to this email (1).

-- 
http://www.imacgregor.com
MacGregor Despite Them!



More information about the pmwiki-users mailing list