Thursday 11 March 2010 7:48:41 pm
Unfortunately the approach I thought would work doesn't seem to. I took out the second two external website lookups and put them into a template fetch function, but I need to be able to access the result of that fetch as a variable later on. If I do this: {cache-block expiry=86400}
{def $mylist=fetch( 'mplookup', 'list', hash())}
{/cache-block}
...it doesn't work the second time, as the variable $mylist doesn't exist once that block is cached. Does that make sense? I want to cache the result of the fetch, but still be able to access the variable next time that template is used (with a different view parameter). Am I missing something obvious here?
Thanks Matthew
http://carroll.org.uk
|