简体   繁体   中英

How can I make 2sxc app URLs show up in DNN's Sitemap.aspx?

I have a 2sxc app (using C# Razor template) that shows a listing and details view. I have 10 items. Each item has a friendly URL. Looks something like this:

domain.com/landing-page/details/the-benefits-of-jargon
domain.com/landing-page/details/code-samples
domain.com/landing-page/details/highlights-and-use-cases
etc…

Is there a way that I can make these URLs appear in the DNN Sitemap.aspx ? (as it stands, the only page that appears is “landing-page” because that's the only real DNN page)

There are actually two ways. Dnn has some way you can write code to extend the page-structure provider. IMHO this is super difficult to do, but probably the official architected way.

Our way is much simpler ;)

  1. Create a WebAPI which creates a standalone sitemap for your needs. You could assemble some strings, but we recommend to use the C# Xml object just to be sure. You can find some brand-new example on the RSS feed of the latest Blog5 app.
  2. Register this endpoint as another sitemap on Google (yes, you can do that :)

That's how we do it - and we've been very successful with it creating landing-page systems that generate hundreds, sometimes thousands of unique landing pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM