DeskNow Knowledge Base
 
      
Home Customization and Integration Custom Links in the menu

Custom Links in the menu

Currently the customization of the left menu is only possible by modifying the JSP file that builds the menu. We plan to add a link manager (actually, we plan to add a full wiki....)

To add items to the tree, edit the file /desknow/jsp/original/MenuBody.jsp with a text editor and add lines like this towards the bottom, just before the ];
,['Link 1','http://www.desknow.com',tf,admin_group]
,['Link 2','http://www.google.com',tf,admin_group]

admin_group defines the icon to use, and is defined in /desknow/3.1.11themes/templates/TreeFormat.jsp 

(obviously replace 3.1.11 with your current version number!)

use '_blank' (with the quotes) instead of tf to open in a new window:
,['Link 2','http://www.google.com','_blank',admin_group]

If you want to include the username in the URL:

,['Link 1','http://my.site.com?username=<%= account_username %>&domainname=<%= account_domainname %>',tf,admin_group]

If you want to make the link available only to a specific domain:

<dn:ifequal value1="<%= account_domainname %>" value2="mydomain.com">
            ,['Link 1','http://www.desknow.com',tf,admin_group]
</dn:ifequal>

If you want to make the link available only to a specific user:

<dn:ifequal value1="<%= account_domainname %>" value2="mydomain.com">
        <dn:ifequal value1="<%= account_username %>" value2="joe">
            ,['Link 1','http://www.desknow.com',tf,admin_group]
        </dn:ifequal>
</dn:ifequal>

Important: make a backup copy of the MenuBody.jsp file before modifying it. When you upgrade DeskNow, you must upgrade the file as well.

Email Article Email
Print Article Print


How helpful was this article to you?
Related Articles
article How do I replace the name and the links to DeskNow with the name of my company?
You can relabel the interface to the name of...

  August 12, 2004    Views: 62930   
article The number of unread messages displayed in the menu is incorrect. How can I fix this?
If the number of unread emails (in brackets)...

  January 24, 2005    Views: 58574   
article Custom authentication
This article describes how to use a custom...

  May 2, 2004    Views: 60663   



Powered by Lore :: (c)2003 Pineapple Technologies.