خلط خريطة الموقع والصفحات الديناميكية (قاعدة البيانات)؟
-
19-09-2019 - |
سؤال
لدي ثابت .sitemap. ملف لموقعي. أريد أن إضافة 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>
المحلول
انتهى بي الأمر بإنشاء مخصص SiteMapProvider
.
لا تنتمي إلى StackOverflow