사이트 맵과 동적 (데이터베이스) 페이지를 믹싱 하시겠습니까?
-
19-09-2019 - |
문제
나는 정적이 있습니다 .sitemap 내 사이트 파일. 나는 원한다 5 개의 하위 범주를 추가합니다 각 메인 카테고리에 대해 (@제품) 그래서 그들은 내 메뉴에 나타납니다 (메뉴는 작동하는 커스텀 헬퍼입니다. Sitemap.Provider
일부 페이지 실행 시간...) 이게 가능해?
siteemap :
<?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