Logout Manager Links
A snippet based on Adam Crownoble’s LoginLogoutLink (8/3/2005) and QuickEdit.
Purpose
The purpose of Logout Manager Links is to allow people using front end editors such as quick edit, or FrontEndDocument Manager to logout or go to the Manager. It creates a set of links that appear where called that looks as follows:
Logout | Go to Manager.
If logged in the manager user will see the links where called. If not logged in noone else will see the links.
Usage:
You can change the output text via the parameters or using a template chunk.
Simple (No Params/Default)
With optional user template
[!LogoutManagerLinks? &tpl=`chunkname`!]
Where chunkname is the name of your chunk that contains a template
with the required placeholders [+loURL+] and [+mgrURL+]
1. Create a chunk called "lmlTml" (or whatever you want) and place your link template as below:
<a href="[+loURL+]" title="Logout Link Title">Logout Now!</a><br/>
<a href="[+$mgrURL+]" title="Go to Manager Title">Go to Manager Now!</a>
2. Place your call in your page as below:
[!LogoutManagerLinks? &tpl=`lmlTpl`!]
(or using whatever you named the chunk)
Important!: Do not place the chunk call in the document as it will be visible to all users.
Parameters
&lo_link_name - Link text to appear on page. (String)[Optional] Default: Logout
&lo_link_title - Link title for the link to appear in <a> element as title value.(String)[Optional] Default: Click here to logout.
&lo_doc_id - Document to send user to on logout.(String)[Optional] Default: current document.
&mgr_link_name - Link text to appear on page.(String)[Optional] Default: Go to Manager.
&mgr_link_title - Link title for the link to appear in <a> element as title value.(String)[Optional] Default: Click here to go to manager.
&tpl - Name of chunk to use for ouput. (String)[Optional] //Added V. 0.2
Current Version: 0.2
Changes:
Version 0.2: 06-01-2008 - Add ability to use optional user template from chunk.
Version 0.1: 19-12-2007 - Initial release.
Todo:
Make it possible to use chunk id, @code:, and @file: for template.