packetstormer has asked for the wisdom of the Perl Monks concerning the following question:
Hello
Does anyone know who one might search a list in Templates?
That is, I have inherited an application that creates a template variable called SEARCH_RESULTS. This contains many arrays some with other arrays. If I do the following in the template:
I get the value of the fieldoffice list. Sometimes this value has one entry and displays like "Office1". Other times it shows: "Office2 , Office9 , Office11".[% FOREACH line in SEARCH_RESULTS %] [% line.fieldoffice %] [% END %]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Templates array grep?
by stonecolddevin (Parson) on Jan 25, 2012 at 20:28 UTC | |
|
Re: Templates array grep?
by ww (Archbishop) on Jan 25, 2012 at 19:47 UTC |