|
Cookbook /
EditToolbarSummary: A shiny new set of icons, replacing and extending those on the standard edit toolbar.
Version: 1.1.1 (27-May-2009)
Prerequisites: None
Status: Active
Maintainer: DaveG
License: Licensed under the GPL license.
Discussion: EditToolbar-Talk
DescriptionReplaces the default edit-toolbar icons, and adds a few additional icons. ![]() Download and Install
$EnableGUIButtons = 1;
include_once("$FarmD/cookbook/edittoolbar/edittoolbar.php");
So, after installing you should have H1 HeadersThe H1 header is reserved by convention for the page title, so it is excluded from the toolbar by default. If you want to include the H1 element on the toolbar, then add this to $et_Include_H1 = true; FAQHow do I control which buttons to show?How do I remove icons that I don't want displayed? Each icon is identified by a name, listed below. Simply add an 'unset' statement in
$EnableGUIButtons = 1;
include_once("$FarmD/cookbook/edittoolbar/edittoolbar.php");
# These lines remove the icons for author's, including the separator.
unset($GUIButtons['separator5']);
unset($GUIButtons['author']);
unset($GUIButtons['authordate']);
Refer to the icon list for a list of icon names. How do I add new icons?Rather than change the Each icon is assigned to a number, which determines the icons position in the toolbar. EditToolbar uses from 0 through 290 in jumps of 10, so your numbering should start at 300 and above to position icons at the end of the toolbar, or use numbers not divisible by 10 (155, 157, etc) to position icons between the existing icons. Refer to the icon list for a list of icon names and array position numbers. $GUIButtons['new_button'] = array(300, 'PRE-TEXT', 'POST-TEXT', '$[LABEL]','$GUIButtonDirUrlFmt/ICON"$[BALOON TEXT]"'); Each button is specified by an array of five values:
Icon ListThis table is a list of icon names, and icon array numbers. Use this list when either removing icons, or when determining the postion for new icons.
Known Issues
Change Log1.1.1 (27-May-2009)Contributors: DaveG, IDB
1.1.0 (1-Mar-2009)Contributors: DaveG
1.0.0 (13-Feb-2009)Contributors: DaveG
CreditImages are ImagesSilk icon set 1.3, by Mark James, and are licensed under a Creative Commons Attribution 2.5 License. CommentsI'd love to know if you use this cookbook, or even if you like or hate it. Leave a comment, or see the discussion at EditToolbar-Talk. User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |