Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: TMPL_LOOP within a TMPL_LOOP

by samtregar (Abbot)
on Apr 30, 2002 at 03:21 UTC ( #162989=note: print w/ replies, xml ) Need Help??


in reply to TMPL_LOOP within a TMPL_LOOP

jeffa's answer above is correct, but I'd like to suggest an alternative: use CGI.pm's popup_menu (or scrolling_list) method to populate a <tmpl_var>. This is addressed in more detail in the HTML::Template FAQ - question number 11.

-sam


Comment on Re: TMPL_LOOP within a TMPL_LOOP
(jeffa) 2Re: TMPL_LOOP within a TMPL_LOOP
by jeffa (Chancellor) on Apr 30, 2002 at 06:59 UTC
    Ya know ... this really is a smart way to do it. Thanks for bringing it up. Personally, i don't think this violates the golden rule of separation because a <select> is a <select> is a <select>, and they can be a real pain to create with <tmpl_loop>'s. samtregar++ :)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162989]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2014-09-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (145 votes), past polls