Mixing <mvcSiteMapNode> and <siteMapNode>

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

Hello,

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" ?>
<siteMap>
  <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>
   
      
    
    <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" />
      
    </mvcSiteMapNode>
    
  </mvcSiteMapNode>
</siteMap>

 

any ideas?

Edit:

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.

 


Coordinator
Sep 3, 2009 at 6:47 AM

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

Sep 3, 2009 at 1:24 PM

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

 

Oct 8, 2010 at 8:00 PM

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