Module

Archived
Forum
(read-only)

Sitemap Module

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Brian Litzinger

     

Large sitemap support

General (Resolved)

spyro187
spyro187

Does this module have a way to break sitemaps into sets when you have a very large sitemap?

For example: I have a channel with 200K entries and want each “sub” sitemap to be numbered and contain only 5K records each.

PutYourLightsOn
# 1
PutYourLightsOn

yes, it is described in the docs

spyro187
# 2
spyro187

I did read through the document, I just couldn’t get a good feel for how it split up one channel into groups and how the template naming would come out.

It looks like if I had 200K records and I wanted to show them in 10K increments then I would have to manually create 20 sitemap templates. Which is what I am trying to prevent because for every 10K records I would have to remember to do it again.

PutYourLightsOn
# 3
PutYourLightsOn

you could try hooking it up to the segment variables but that is beyond the scope of this support fourm. this should give you the idea though:

{exp:sitemap:get start=”{segment_2}” limit=”{segment_3}”}

http://www.domain.com/sitemap/0/10000
http://www.domain.com/sitemap/10000/10000
http://www.domain.com/sitemap/20000/10000
...