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.
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>