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
|
Posted: 19 August 2011 10:09 AM |
|
|
|
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 = 0 OR expiration_date > ".time().")
|
|
|
PutYourLightsOn
|
Posted: 23 August 2011 04:21 AM |
# 1
|
|
|
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…
|
|
|