c# - Bread crumbs with url rewriting -
In the database I have a list of hierarchical lists of categories, so I have added a custom sitemap provider (StaticSiteMapProvider with this list) )
Now, the page that shows the article / ShowArticle.aspx? Id = "+ Eval (" ID ") can be rewritten:
/ id /article-title.aspx.
So this is not physical existence.
I want the following: When the selected page is displayed "Pieces of bread" (each article has a "category" property in which it is 1 lvl) category - without parent)
Structure of categories for example:
Home Product CDROM DVDRT Toshiba Support Hardware Software
When an article ID = Xx, category = Toshiba, title = "Best Toshiba DVD" is opened, "Bread pieces Should have path in:
Home | Products | DDRR | Toshiba | all Best Toshiba DVD
How do I add something to my custom sitemap provider?
I do not get any answer: (
I should probably do this :) instead of categories To build a site map, I must co-operate it for both articles and all the articles available in the database.
It's not efficient (even with caching), but this is the only way I think.
What else can I do?
Update: The one on the left is just to create a dynamic list of links that will act as pieces of bread, when an article is opened, then the category Will be read and the full hierarchical category path will be calculated (from the root to this existing node).
Comments
Post a Comment