Mixing <mvcSiteMapNode> and <siteMapNode>

Sep 2, 2009 at 5:04 PM
Edited Sep 2, 2009 at 5:38 PM


I'm working on trying to integrate the MVC SiteMap into my testing project of all the new/cool technologies we want to use in an upcoming product.     So we need to beable to have regular URL's and the action/controller type nodes in our map.  

I was reading in the issues tracker here:  http://mvcsitemap.codeplex.com/WorkItem/View.aspx?WorkItemId=1604 that is should be possible,  but my regular siteMapNode  isn't showing up in my sitemap.

Here's the content of my sitemap:

<?xml version="1.0" encoding="utf-8" ?>
  <mvcSiteMapNode title="JQueryUI" controller="JQueryUI" action="HandleError" >
    <siteMapNode url="http://google.com" title="Google" description="Hello Google" />
    <mvcSiteMapNode title="JQueryUI" controller="JQueryUI" action="Index" >
      <mvcSiteMapNode title="AutoComplete" controller="JQueryUI" action="AutoComplete" />
      <mvcSiteMapNode title="DialogTest" controller="JQueryUI" action="DialogTest" />
      <mvcSiteMapNode title="DateTimePickers" controller="JQueryUI" action="TestDateTimePickers" />
      <mvcSiteMapNode title="Masking" controller="JQueryUI" action="TestMeioMask" />
      <mvcSiteMapNode title="Multi File" controller="JQueryUI" action="TestMultiFile" />
      <mvcSiteMapNode title="Progress Bar" controller="JQueryUI" action="TestProgressBar" />
      <mvcSiteMapNode title="ToolTips and Things" controller="JQueryUI" action="TestQTip" />
      <mvcSiteMapNode title="Tabs" controller="JQueryUI" action="TestTabs" />
      <mvcSiteMapNode title="Time Picker" controller="JQueryUI" action="TestTimePicker" />
    <mvcSiteMapNode title="Home" controller="Home" action="Index" >
      <mvcSiteMapNode title="About" controller="Home" action="About" />
      <mvcSiteMapNode title="Map" controller="Home" action="theMap" />
      <mvcSiteMapNode title="Resourcepage" controller="Home" action="Resourcepage" />


any ideas?


Ok, so maybe it wasn't reloading properly, but it's not not showing up anymore, it's throwing an error:

http://google.com' is not a valid virtual path.


Sep 3, 2009 at 7:47 AM

url="" can only be a virtual path, so for example url="~/admin/login.aspx" will work

Sep 3, 2009 at 2:24 PM

ahh, I see,   Thanks for the Reply and for the great Project.


Oct 8, 2010 at 9:00 PM

Does this still work? I can't get anything by mvcSiteNodes to appear.