Bug #12011 See Comments

show_pages=“no” doesn’t work in Archive Month Links tag

Version: EE 2.0.1PB 20100215 Reporter: narration

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

This is actually present and tested to act falsely also in 1.6.8. It looks like an oversight, as show_pages isn’t in the Archive Month Links documentation; yet it is needed to achieve proper archive lists.

The result is that in 2.0.1 but also 1.6.8 you see the month listed when a Page may have been added to a channel/weblog, even though no non-Page content may be present for that month.

I.e. the following, when there was actually no non-Page content for April 2010, but there was a Page then.

Monthly Archives
  * April 2010
  * June 2008
  * July 2007
  * Complete Archives


A code snip which exhibits this behaviour follows - show_pages=“no” just doesn’t act to block the false months - again in 2.0.1, but also 1.6.8.

<h2 class=“sidetitle”>Monthly Archives</h2>
<ul>
{exp:channel:month_links channel="{my_channel}” show_pages=“no”}
<li>{month} {year}</li>
{/exp:channel:month_links}
<li>Complete Archives</li>
</ul>

Snips I had borrowed to do Most Recent Posts lists used the straight entries: tag, so they do trap out Pages-related results properly.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases