Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07

Menu Security Levels


Poster: digitaldi
Dated: Tuesday October 5 2004 - 19:00:39 BST

We have implemented Milonic's menu on a couple of sites and are happy with the functionality.

We have a new site that needs to implement the menu where items displaying in the menu are based on the security level of the user in the database. The users and security levels are in an access database and users are required to log in before using the site.

Has anyone implemented this type of security using Milonic' s menu?


Poster: Maz
Dated: Wednesday October 6 2004 - 1:53:30 BST

Maybe this will help.

First create a userIsMember in the backend.

Then add the the template, something like this.


<script language="javascript" type="text/javascript">
//<![CDATA[
var userIsMember=0;
//]]>
</script>

On the menu data use

if(userIsMember){
menu items....

}

else{

other menu item....

}

This is an example what I used, but I don't know backend. Maybe it will help.

maz


Poster: John
Dated: Wednesday October 6 2004 - 4:00:12 BST

Note the CDATA is only necessary if you're using XHTML with certain special characters in hard-coded script; i.e., not script called from an external file. Also, some flavors of IE tend to choke on CDATA. The way around is to simply call ("include") as many scripts as possible, special characters or not.