2011-04-28, 00:49:54
n00dles101 Wrote:Is this the sort of thing your looking for?
I use this for a different CMS but don't see why it should't work with your News manager.
Just make sure $results is an array of dates.
Then just change the HREF to a search page that returns the articles your looking for.
mike...
Code:<ul>
<?php
$months=array("January","February","March","April","May","June","July","August","September","October","November","December");
$results= your array of dates from your pages;
$dates=array();
foreach ($results as $item){
$d_var=explode("/",date($item));
$year= $d_var[2];
$month= $lmonths[$d_var[0]-1];
@$dates[$year][$month]+= 1;
}
foreach ($dates as $year=>$months){
foreach($months as $mon=>$num){
echo "<li><a href='#' title='{$num} Articles'>{$mon} {$year}</a></li>";
}
}
?>
</ul>
Awesome! Ill give this a try, thanks for your help.
On another completely unrelated note, how is your custom fields plugin going? I cannot seem to find the repository for it, and you removed the link from your footer.