[htmltmpl] Templates with template loops within templates
Brought to you by:
samtregar
From: Eric F. <er...@dm...> - 2004-12-17 17:59:55
|
Hi, I think I understand what you are saying, but that was part of the confusion. The URL_BASE is used before the loop in the top level template.(Sorry I didn't show the entire thing) At least I think I understood what you said, that there is a bug where if the first time a var is referenced is in a loop it won't be replaced. If that is so, then that bug can't be the reason I am sorry to say :) Thanks very much for the reply, Eric >It sounds like you have hit the dreaded "top level param, not referenced >before use in >template loop, so I"ll just do nothing" bug... try this somewhere before >your first >TMPL_LOOP (say at the top of the file), in your first template: > > <!-- H::T BUG: <TMPL_VAR URL_BASE> --> > > which _should_ do absolutely nothing useful/harmful to the html > output. However, it will >result in H:T actually getting a reference to the URL_BASE variable. |