Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

security trimming not working with virtual path

Status
Not open for further replies.

jrenae

Programmer
Jan 18, 2006
142
US
Hello,

I'm trying to implement security trimming in my site via the web.sitemap file and it's working fine for siteMapNodes that have the physical url hardcoded. But it's not working for siteMapNodes that have a ~virtual url. In the below web.sitemap example, it works for my node titled finance but not for my node titled admin.

How do I make it work for the urls containing the tilde rather than the physical path?

Thank you for your help.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
<siteMapNode url="[URL unfurl="true"]http://ourphysicalpath/Reports/"[/URL] title="Finance" roles="FIN,IT">
</siteMapNode>
<siteMapNode url="~/Admin/UserMgmt.aspx" title="Admin" roles="IT">
<siteMapNode url="~/Admin/Activity.aspx" title="View Activity" /><siteMapNode url="~/Admin/ManageCache.aspx" title="Manage Cache" />
</siteMapNode>
</siteMap>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top