Aaron - Wolf X Machina
Aaron - Wolf X Machina

Reputation: 643

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)

Upvotes: 0

Views: 95

Answers (1)

iJungleBoy
iJungleBoy

Reputation: 5638

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.

Upvotes: 1

Related Questions