This is a XSLT utility for Symphony CMS that adds a simple admin bar in the top of the site when logged in as a developer/author, displaying options like 'Logout' or 'Back to admin'.
- Version: 0.3
- Date: 24-11-2010
- Author: João Barbosa
- E-mail: [email protected]
- Website: http://www.joaootavio.com.br
https://gist.github.com/714098
Add the admin-bar.xsl
file to your /workspace/utilities
folder.
On your master.xsl
(or an specific page you want to use it), import the XSL file...
<xsl:import href="../utilities/admin-bar.xsl"/>
... and call the template right after your body
tag:
<xsl:call-template name="front-admin-bar">
<xsl:with-param name="dev-username" select="'developer-username'" />
<xsl:with-param name="logged-label" select="'Logged in as: '" />
<xsl:with-param name="admin-link-label" select="'Back to admin'" />
<xsl:with-param name="logout-link-label" select="'Logout'" />
<xsl:with-param name="debug-link" select="'Debug this page'" />
</xsl:call-template>
- dev-username: developer's username
Required for identifying which sidebar options that will be displayed
- logged-label: text that precedes username link
Default Value: 'Logged in as: ' - admin-link: text for the administration link
Default Value: 'Back to admin' - logout-link: text for the logout link
Default Value: 'Logout' - debug-link: text for the actual page debug link
Default Value: 'Debug this page'
- Developers and authors has different sidebars
- Blank page when logged out bug fixed
- Debug link added
- First Release