質問

私は私のサイトの静的なの .sitemap のファイルを持っています。私はをそれぞれmaincategoryのための5つのサブカテゴリをを追加したい(の@products の)ので、彼らはメニューが動作するカスタムヘルパーです(私のメニューに表示されます、私はちょうどSitemap.Providerに追加する必要がありますで、いくつかのページのランタイムの...)これは可能でしょうか?

サイトマップ:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap>
  <node controller="Home" action="Index" title="Home" description="Homepage">
    <node controller="Newsroom" action="Index" title="News" description="" />
    <node controller="Products" action="Index" title="Products" description="">
      <node controller="Products" action="MainCat1" title="MainCat1" isDynamic="true" dynamicParameters="category" />
      <node controller="Products" action="MainCat2" title="MainCat2" isDynamic="true" dynamicParameters="category" />
      <node controller="Products" action="MainCat3" title="MainCat3" isDynamic="true" dynamicParameters="category" />
    </node>
  </node>
</siteMap>
役に立ちましたか?

解決

私は、カスタムSiteMapProviderを作成してしまっています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top