我的网站有一个静态的.sitemap文件。我想为每个主类别(@Products )添加 5 个子类别,以便它们出现在我的菜单中(菜单是自定义帮助程序,它可以工作,我只需要在运行时添加到某些页面......)这可能吗?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>