サイトマップと動的(データベース)ページをミキシング?
-
19-09-2019 - |
質問
私は私のサイトの静的なの .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
を作成してしまっています。
所属していません StackOverflow