Categories > TinyButStrong general >

Cache with Onload

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Maz
Date: 2005-07-26
Time: 02:47

Cache with Onload

I wonder, is it possible to create a cache file when used with onload?

    <div id="headerwrap">
        <div id="header">
            [onload;file=templates/default/layout/tabs/tabs-[var.tplid].tpl.php]
        </div>
        [onload;file=templates/default/layout/nav/nav-[var.tplid].tpl.php]
        <div id="panel">

For example, I'd like the [onload;file=templates/default/layout/nav/nav-[var.tplid].tpl.php] to be cached.

Hope I'm making sense?
By: Maz
Date: 2005-07-26
Time: 02:48

Re: Cache with Onload

Slight correction, I'd like the file nav-filename.tpl.php to be cached
By: Skrol29
Date: 2005-07-27
Time: 16:08

Re: Cache with Onload

You can simply manage this cache file (create/refresh/let) before to merge the main template.

Another way is to use an 'onformat' function with parameter 'subtpl' (like in the manual) in order to manage the contents of the sub-template as if it was a normal template.