Best way to remove count (#) from Monthly Archive links
primalmedia - April 1, 2008 - 14:08
| Project: | Monthly Archive |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Thank you for creating this great module.
What would be your recommendation for removing the count after the month. Right now the Arcive will read "April 2008 (3)", and I need to remove the (3).
Thanks in advance for your help!
Adam

#1
#2
Hi, the way I did it was to just edit these two lines in the month.module file
Replace
$block_content[] = l(t(date('F',$month_start))." ".date('Y',$month_start).' ('.$month->nodenum.')', 'month/'.date('Y/m',$month_start));
with
$block_content[] = l(t(date('F',$month_start))." ".date('Y',$month_start), 'month/'.date('Y/m',$month_start));
and
$linklist[] = l(t(date('F', $month_start)) . ' ' . date('Y', $month_start) . ' (' . $month->nodenum .')', 'month/' . date('Y/m', $month_start));
with
$linklist[] = l(t(date('F', $month_start)) . ' ' . date('Y', $month_start), 'month/' . date('Y/m', $month_start));
Save the file and upload it replacing your existing month.module file. I think best practice is to store modules in "sites/all/modules", but any you edit or customise yourself, put in "sites/default/modules".
Later,
Sack.