1
I am trying to redesign the template of the news archive.
At the moment its lay-out a long list of months with news appear below eachother. A lot of spare 'space' isn't used. If you have a lot of years & months, the list is getting very long. If people click a month they don't realise the result appears below.
Being short: its momentary lay-out isn't very handy and overviewing.
Now what I'd prefer is:
Year (2004)
month, month, month,......
Year (2005)
month, month, month, .........
Year (2006)
month, month, month, .......
I've tried it with: (news_archive.html)
<table>
<tr>
<th><{$lang_newsarchives}>th>
tr>
<tr class="even">
<{foreach item=year from=$years}>
<td><{$year.number}>td>tr>
<{foreach item=month from=$year.months}>
<tr><td><a href="./archive.php?year=<{$year.number}>&month=<{$month.number}>"><{$month.string}> a>td>
tr>
<{/foreach}>
<{/foreach}>
table>
<{if $show_articles == true}>
But this doesn't work out. Some code things are still missing.
Who knows what, where and how?
Any help would be appreciated!
Grtz., Shine