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

     

Custom Status Field Groups

Feature Request

R.BIRD
R.BIRD

Just discovered that Sitemap Module will not produce any results where a channel uses custom status field groups, i.e.: something other than Open status for entries.

A quick fix is to open the mod.sitemap.php file and edit on-or-about line 116 (in version 2.2.1) to look for entries that are _not closed_ rather than _open_, which is the default.

Like so:

WHERE channel_id '".$channel_id."' AND exp_channel_titles.site_id '".$this->EE->config->item('site_id')."' AND status != 'closed' AND (expiration_date OR expiration_date ".time()."
PutYourLightsOn
# 1
PutYourLightsOn

thanks for posting this. statuses are a bit of a tricky issue here, as your code will include entries marked as “draft” for example. i suppose the best solution would be to add a status assigning section to the module. i may do this in future…