Custom Button within the toolbar

Last post 04-16-2008, 1:19 PM by SD-tech. 1 replies.
Sort Posts: Previous Next
  •  04-16-2008, 12:34 PM 39332

    Custom Button within the toolbar

    Hi,
     
    I've been trying to add a custom button (which is ok) onlu I'd like toi be able to place it withing the toolbar.
     
    I've tried to move <item type="holder" ...> to no effects.

     
    Please could you advise?
    Thanks
    Steph.
     
  •  04-16-2008, 1:19 PM 39336 in reply to 39332

    Re: Custom Button within the toolbar

    I've created a work-around by changing 3 lines in the cuteeditor include declaration
     
     
    there are two places where it looks for "holder" in the code, and those were commented out !! (so I guess the functionality never got implemented?! - it answer my question on the other threads)
     
    I've therefore made the following changes:

    replaced this
            case "holder":
                's = s &  AddToolbarLineBreak
     
    by this: 
            case "holder":
                s = s & "##HOLDER##"
     
    And then
        strTemp = strTemp & CustomAddons
     
    and replacing it with 
        strTemp = replace(strTemp, "##HOLDER##", CustomAddons)
        and removing the If statement around it since the marker (if it exists) needs replacing anyway.
     
    Et voila... simple but works for me! All you have to do is move the <item type="holder"> in the XML config file where you want your custom buton...
     
    only inconvenient this anly allows for 1 location for custom buttons... with a bit of work the parsing of the XML could be improved and allowing to place (as it should) any buttons anywhere...
     
     
    enjoy... 
    Steph.
View as RSS news feed in XML