uhaciogullari / SimpleMvcSitemap

A minimalist library for creating sitemap files inside ASP.NET MVC and ASP.NET Core MVC applications
MIT License
128 stars 39 forks source link

multiple dynamic sitemap provider #31

Closed Nazgaul closed 5 years ago

Nazgaul commented 5 years ago

Let say i have multiple dynamic data i want to put in the sitemap ( let say multiple tables). I created multiple SitemapIndexConfiguration for each type. Is there a way i can merge them for SitemapIndexNode? Can you provide an example if yes?

thanks.

uhaciogullari commented 5 years ago

I would just serve each of them from different endpoints and list them in a sitemap index file like explained here. I guess the index files can refer to other index files. Let me know if it works.

Nazgaul commented 5 years ago

Creating a different sitemaps for each production list - I did. The question is how to create a sitemapindex and give him all the nultiple dynamic data dynamic data.

e.g.

.../product-sitemap/1 .../product-sitemap/2 .../product-sitemap/3 .../buyer-sitemap/1 .../buyer-sitemap/2 .../buyer-sitemap/3
uhaciogullari commented 5 years ago

Does the ../product-sitemap/ serve the index file for the products? Then you could create a sitemap index file with this list:

.../product-sitemap .../buyer-sitemap/ etc.

Nazgaul commented 5 years ago

IF you mean create sitemap index inside sitemap index. then accourding to this - you can't

uhaciogullari commented 5 years ago

I didn't know that wasn't allowed. I think the easiest way is to keep multiple index files and submit them all to Google.