on or about, Monday, February 03, 2003, we have reason to believe that Arjan Huijzer wrote something along the lines of :
I am having a problem with calling multiple Z SQL Methods from within Page Templates. What I need to accomplish is calling a Z SQL Method using a parameter value from another Z SQL Method.
My code looks like:
<p tal:repeat="cd container/z_sql_methods/select_cd"> <span tal:replace="cd/cd_title">CD Title</span> <ul tal:repeat="song container/z_sql_methods/select_songs"> <li content="song/song_title">Song Tile</li> </ul> </p>
You'll have to use a python statement: something like this: <ul> <li tal:repeat="song python:container.z_sql_methods.select_songs(cd=cd.cd_id)" tal:content="song/song_title"> Song Tile </li> </ul> Note that i also moved your repeat statement into the <li>, so that you get list items for each song, not a new list with one item.. :) -- Geir Bækholt geir@funcom.com Web Application/HCI-designer Product Operations Funcom Oslo