Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

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

     

You must be logged in to post.

Rendered sitemap not listing some entries

Support (Resolved)

erbert
erbert

I’ve just set up sitemap and it seems to work as expected.

On the site in question there are a lot of entries to one channel which are regularly added to (approx. 500). When this channel is outputted on the rendered sitemap, only 3 of these entries show, I was expecting them to all be listed?

PutYourLightsOn
# 1
Developer
PutYourLightsOn

Anything particular about the entires that show? Are the other entries of a different status? Or expired? Or future-dated?

erbert
# 2
erbert

The entires which I need to display are in fact all future entries. Is there a setting for that?

PutYourLightsOn
# 3
Developer
PutYourLightsOn

Not at present, no. We’ll consider this for a future release though.

If you want to hack this in to your copy, you can simply comment out lines 263-267 of mod.sitemap.php:

// if future entry date then don't include
/* Commenting this out to allow future entries
    if ($entry->entry_date && $entry->entry_date > time())
    {
        continue;
    }
*/ 
erbert
# 4
erbert

Excellent. Thank you very much. That’s done the trick!