Dr3am3rz has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys,
I am currently using Template Toolkit and have never learn or use before TT. And now I'm really really stuck and have no clues at all.
For example, I have 10 files, 5 files dated year dd/mm/2011 and 5 files dated dd/mm/2012. I have tried using foreach loop to get the year of each files, after that I'm stuck.
What I need to achieve is to get the year of the files and using that to create a link to display those documents on that year.
Example:
Group by year: 2012 | 2011
When the user click either one of them, it will show the respective files.
Hope you guys understand. Please some kind souls out there help me out. =x Thanks in advance.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Template Toolkit foreach loop
by rnewsham (Curate) on Mar 07, 2013 at 10:34 UTC | |
by sundialsvc4 (Abbot) on Mar 07, 2013 at 14:34 UTC | |
Re: Template Toolkit foreach loop
by Anonymous Monk on Mar 07, 2013 at 10:39 UTC |
Back to
Seekers of Perl Wisdom