[htmltmpl] nested TMPL_LOOP variables
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2003-11-06 04:06:23
|
Hi all, Firstly, I am new to the H::T list, but I have been using H::T for well = over a year now. I am having a problem with TMPL_VAR's not existing in nested loops. eg: <TMPL_LOOP loop1> <TMPL_LOOP loop2> <TMPL_VAR var1_loop1> </TMPL_LOOP> </TMPL_LOOP> where 'var1_loop1' is a template var from the first loop. Things to note: - I have global_vars enabled - I have loop_context_vars enable (even though this is irrelevant). - I am using H::T 2.6 and H::T::E 0.4 (ie the latest) I have searched through the archives (and read most of the archive going = back at least 12 months), and found that others have also had this = problem. I know how to work around the problem - simply reference the TMPL_VAR in = the outer loop using a <TMPL_IF var1_loop1></TMPL_IF>, but seems like a = kludge. So my question is, "Has this bug been solved, and/or anyone got a = solution to this?" regards, Mathew Mathew Robertson Senior Technical Support Engineer [mat...@re...]=20 96-98 Market Street +61 3 8606 4041 = tel South Melbourne, Vic 3205 +61 3 8606 4001 fax www.redsheriff.com.au=20 This message and any files transmitted with it are confidential and = intended solely for the use of the individual or entity to whom they are = addressed. If you are not the intended recipient, you are hereby = notified that any use or dissemination of this communication is strictly = prohibited. If you have received this message in error please notify us = immediately by return email or telephone +1 (212) 905-6115, then delete = this message. Any views expressed in this message are those of the = individual sender and may not necessarily reflect the views of = RedSheriff. |