another thing,<br>I made test plugin that have getTest function which rerturn random number<br>isDynamic field of this plugin have true value<br>then I call it in footer.template like this:<br><br>{dynamic}<br>{$test->getTest()}
<br>{/dynamic}<br><br>and it's worked without any problem.<br><br>Regards,<br> Ahmad<br><br><div><span class="gmail_quote">On 6/4/07, <b class="gmail_sendername">Oscar Renalias</b> <<a href="mailto:oscar@renalias.net">
oscar@renalias.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well this sounds like a reasonable approach... but I see at least one problem.
<br><br>When a page is cached, currently its data is not loaded. So for<br>example $posts and $blog are not available in main.template when it's<br>cached because it doesn't make any sense to load that data anymore. So
<br>if you develop a plugin that registers itself as dynamic and depends<br>in any of the data that is not available anymore, this won't work. The<br>plugin will be there and trying to run, but it's data will not.
<br><br>But before we dig deeper into this, can anybody list any examples of<br>plugins that would *really* benefit of running even in cached pages<br>(other than a plugin that would list the number of users currently<br>
logged in)<br><br>Oscar<br><br>On 6/3/07, Ahmad Saleh <<a href="mailto:ahmadfds@gmail.com">ahmadfds@gmail.com</a>> wrote:<br>><br>> ><br>> ><br>> ><br>> > 1) Add ($isDynamic = false) field in PluginBase class.
<br>> > 2) just add function (getDynamicPlugins()) that return only dynamic<br>> plugins<br>> without changing any thing in getPlugins() function.<br>><br>><br>> ><br>> ><br>> > 3) in BlogView class:
<br>><br>><br>> sorry about this mistake :)<br>><br>> Regards,<br>> Ahmad<br>><br>><br>> _______________________________________________<br>> pLog-svn mailing list<br>> <a href="mailto:pLog-svn@devel.lifetype.net">
pLog-svn@devel.lifetype.net</a><br>> <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br>><br>_______________________________________________<br>pLog-svn mailing list
<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote></div><br>