Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: TMPL_LOOP within a TMPL_LOOP

by samtregar (Abbot)
on Apr 30, 2002 at 03:21 UTC ( [id://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

Replies are listed 'Best First'.
(jeffa) 2Re: TMPL_LOOP within a TMPL_LOOP
by jeffa (Bishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://162989]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found