Description
This plugin will add a few additional administration buttons to your SPIP site’s public area. These buttons will allow you to directly edit the content of an article or section, access a private area from anywhere in your site, or create a new article (among other things) without having to leave the "public side" of your site.
The plugin will also allow you to show or hide the full button bar with a click of a button, so you can free up some screen space while in the site’s public area. Your preference for the button bar ("visible" or "hidden") is saved in a cookie so the only time you will have to set this option is the first time you use it.
The technology at work in this plugin (which overrides file formulaire_admin.html) is not new or unique; it is already in use and explained here. The only difference is that it now works as a plugin and there is
no need to modify any files or templates, and it also allows for easy
upgrades.
The text on the buttons is localized, and is displayed in your chosen language. The "show/hide" capability is quite new and uses javascript.
Please note that all edits made using this plugin are automatically classified in the section you are visiting on the public side of your site.
This plugin is distributed under the GNU/GPL licence.
Installation
As for any other plugin, you just need to download following archive, unzip it, and move extracted folder to SPIP’s /plugins directory. The plugin must be activated through the private area.
Please refer to the Spip official documentation for any further detail concerning plugins.
New buttons available
The plugin proposes following options, some of these appearing according to the context. Bold descriptions indicates that the button appears only for administrators who activated their administration cookie, and not to contributors who have no rights to perform such action :
XML debugger ;
Write a new article (in active section) ;
Create a new section (as a subsection of the active one) ;
Reference a new website (in active section) ;
Write a news item (in active section) ;
Edit content of active section, article, news item ;
Modify active section, article, keyword, referenced website, author ;
Refresh page () ;
Statistics ;
Preview ;
Acces private area (button appears on each page on not only on summary) ;
Template debugger ;
Logging out () ;
Hide () / Show () buttons bar.
Some of these buttons allready exists in spip’s core distribution.
A few screenshots
How to improve this plugin
Why not creating a configuration file which would let us choose the buttons we need and hide those that are not necessary and/or not often used.
Source Code
The most important file is formulaire_admin.html :
Javascript code allowing to hide/show the buttons is listed in fonctions_boutons_supp.js :
Updates
Version 1.4 - Feb. 4, 2007 : A slight bug that prevented to use show/hide option with Internet Explorer 6 was fixed. Buttons now disappear when you log out. This was basicely not the case before. When logged out, buttons still appeared but sent to the login page untill the administration cookie was detroyed, what happened when user asked to log in using a different ID.
Version 1.3 - Feb.3, 2007 First release of this plugin available in english.