Tuesday, March 13, 2012

sitemap in memory

is it possible to create a dynamic site map in memory then use that as the
website sitemap? my problem for using a static one is that I have dynamic
content pages which are based off an article ID so 90% of my pages are like
this

artice.aspx?articleID=105

but then that article could have a parent article... so I need to build this
map dynamically... any suggestions on how to?You can create a Custom sitemap provider by inhering from
StaticSiteMapProvider class and overriding the abstract methods and
Initialize method.

"Smokey Grindle" wrote:

> is it possible to create a dynamic site map in memory then use that as the
> website sitemap? my problem for using a static one is that I have dynamic
> content pages which are based off an article ID so 90% of my pages are like
> this
>
> artice.aspx?articleID=105
> but then that article could have a parent article... so I need to build this
> map dynamically... any suggestions on how to?
>
thanks! think I figured it out

"Prasanna Pattam" <PrasannaPattam@.discussions.microsoft.com> wrote in
message news:CE925B44-C12F-4B8E-96C2-2BD2149B4AEF@.microsoft.com...
> You can create a Custom sitemap provider by inhering from
> StaticSiteMapProvider class and overriding the abstract methods and
> Initialize method.
> "Smokey Grindle" wrote:
>> is it possible to create a dynamic site map in memory then use that as
>> the
>> website sitemap? my problem for using a static one is that I have dynamic
>> content pages which are based off an article ID so 90% of my pages are
>> like
>> this
>>
>>
>> artice.aspx?articleID=105
>>
>> but then that article could have a parent article... so I need to build
>> this
>> map dynamically... any suggestions on how to?
>>
>>
>
http://msdn.microsoft.com/msdnmag/i...x?fig=true#fig3
http://msdn2.microsoft.com/en-us/library/ms178425.aspx
http://asp.net/QuickStart/aspnet/do...sitenavapi.aspx

"Smokey Grindle" <nospamhere@.dontspam.net> wrote in message
news:Of$ltT9kGHA.1204@.TK2MSFTNGP02.phx.gbl...
> is it possible to create a dynamic site map in memory then use that as the
> website sitemap? my problem for using a static one is that I have dynamic
> content pages which are based off an article ID so 90% of my pages are
like
> this
>
> artice.aspx?articleID=105
> but then that article could have a parent article... so I need to build
this
> map dynamically... any suggestions on how to?

0 comments:

Post a Comment