Update:
* I have now created a config file and uploaded it to /assets/snippets/reflect/configs/ and the file is called yearArchive.config.php
<?
// Use the following syntax $param = 'value';
$showItems=0;
$groupByYears=1;
$tplYear = '@CODE <a href="[+url+]" title="[+year+]">[+year+]</a>';
?>
I use the following chunks:
{{yearArchives}}
[!Reflect?config=`yearArchive` &targetID=`450` &getDocuments=`1` &extenders=`dateFilter` &sortBy=`pub_date` &dateSource=`pub_date` &dittoSnippetParameters=`parents:75` &id=`wp` &tplContainer=`sidebarArchives` &phx=`1` !]
{{sidebarArchives}}
<div id="side-archive">
<h2>Archives</h2>
[+archive_items+]
</div>
This gives me the archive format of :
2008
January
Febuary
2007
etc
etc
Does anyone out there know how to remove the months as this is driving me nuts!!!
Any help appreciated.
Oh.. and in case it helps... the code generated is as follows:
<ul class="reflect_archive">
<li class="reflect_year"><a href="/mformation-news/date-archive-by-year?wp_year=2008&wp_month=false&wp_day=false&wp_start=0" title="2008">2008</a>
<ul>
<li class="reflect_month"><a href="/mformation-news/date-archive-by-year?wp_month=2&wp_year=2008&wp_day=false&wp_start=0" title="February 2008" class="reflect_month_link">February</a> </li>
</ul>
</li>
<li class="reflect_year"><a href="/mformation-news/date-archive-by-year?wp_year=2007&wp_month=false&wp_day=false&wp_start=0" title="2007">2007</a></li>
</ul>
TIA