problems with sitemapnode

Jan 24, 2011 at 6:56 PM

Hi, thanks in advance for your help. I have some problems displaying sitemapnodes in my breadcrumb trail and sitemap.xml. I created the following scheme but only a few lines appeared in both scenarios.  If I switched the order of sitemapnodes from one group to the other, the system displays first the ones that are on the top but not all the sitemap details... Thanks in advance.

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
  <mvcSiteMapNode title="Account" controller="Account" action="Index" clickable="false">
    <mvcSiteMapNode title="Log In" controller="Account" action="LogOn"/>
    <mvcSiteMapNode title="Register" controller="Account" action="Register"/>
    <mvcSiteMapNode title="Change Password" controller="Account" action="ChangePassword"/>
    <mvcSiteMapNode title="Password Changed" controller="Account" action="ChangePasswordSuccess"/>
  </mvcSiteMapNode>
  
  <mvcSiteMapNode title="Index" controller="Corp" action="Index">
      <mvcSiteMapNode title="Corporation" controller="Corp" action="Index">
        <mvcSiteMapNode title="About" controller="Corp" action="About"/>
        <mvcSiteMapNode title="Contact" controller="Corp" action="Contact"/>
        <mvcSiteMapNode title="Privacy Policy" controller="Corp" action="PrivacyPolicy"/>
        <mvcSiteMapNode title="Terms" controller="Corp" action="Terms"/>
        <mvcSiteMapNode title="Community" controller="Corp" action="Community"/>
      </mvcSiteMapNode>
  </mvcSiteMapNode>
</mvcSiteMap>

 

Coordinator
Jan 25, 2011 at 12:30 PM

Is there an [Authorize] attribute on one of your controllers/actions?

Jan 25, 2011 at 5:11 PM

Hi Marteenba, well yes, I have some paths (eg: changepassword) that has [Authorize] attribute. Its possible to work with them?. brgds

maartenba wrote:

Is there an [Authorize] attribute on one of your controllers/actions?

 

Jan 26, 2011 at 5:25 AM
maartenba wrote:

Is there an [Authorize] attribute on one of your controllers/actions?

 weird, I solve it changing only one ending tag on mvcsitemapnode.

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
  <mvcSiteMapNode title="Company" controller="Product" action="Index" changeFrequency="Always" updatePriority="Normal" clickable="false">
    <mvcSiteMapNode title="Corporation" controller="Corp" action="Index">
      <mvcSiteMapNode title="About" controller="Corp" action="About"/>
      <mvcSiteMapNode title="Contact" controller="Corp" action="Contact"/>
      <mvcSiteMapNode title="Mission" controller="Corp" action="Mission"/>
      <mvcSiteMapNode title="Press" controller="Corp" action="Press"/>
      <mvcSiteMapNode title="Manifesto" controller="Corp" action="Manifesto"/>
      <mvcSiteMapNode title="F.A.Q." controller="Corp" action="Faq"/>
      <mvcSiteMapNode title="Privacy Policy" controller="Corp" action="PrivacyPolicy"/>
      <mvcSiteMapNode title="Terms" controller="Corp" action="Terms"/>
      <mvcSiteMapNode title="Community" controller="Corp" action="Community"/>
    </mvcSiteMapNode>
  <mvcSiteMapNode title="Account" controller="Account" action="Index" clickable="false">
    <mvcSiteMapNode title="Log In" controller="Account" action="LogOn"/>
    <mvcSiteMapNode title="Register" controller="Account" action="Register"/>
  </mvcSiteMapNode>
  </mvcSiteMapNode>
</mvcSiteMap>