[geeklog-devel] caching template library

Mark R. Evans mevans at ecsnet.com
Thu Nov 29 23:03:23 EST 2007


I don't think you understand what I'm describing, on a multi-row display of
albums that uses the set_block feature, some have sub-albums, some don't.
Using the dynamic capability of of the caching library, I can now check in
the template if the sub album variable is set, if not, then use the
colspan=2 otherwise call the second <td>subalbum list</td>.  So each row is
unique, no way to do that with the existing library unless I actually built
the HTML output in the PHP code which is moving in the wrong direction!

As for a ridiculous and immature tactic, you are certainly entitled to your
opinion.  But my take on it is that now I have the ability to bring a whole
lot of new functionality to my plugins, reduce the actual PHP code and
improve their performance.  To me, that is a plus.  Joe did such a good job
on making this backward compatible, I feel pretty comfortable requiring it
for future releases of my code.  Installation is simple and straight
forward.  Dirk has already committed the necessary fixes to GL 15, so having
folks drop it into their tree should be pretty straight forward.

As with anything here, no one forces anyone to use anything.  If folks don't
want to use the caching library, that is fine, there is a current release of
all my plugins that work fine without it.  But moving forward, I want to
take advantage of the new features it provides.  It opens up a lot of new
possibilities that I believe bring a lot of value.


On 11/29/07, Alford Deeley <ajdeeley at telus.net> wrote:
> on 29/11/2007 6:00 PM Mark R. Evans wrote:
> > ...For example, on the main index page if there were sub-albums, then
> > I needed a column to display the subalbum info, for those albums that
> > had none, it just had a blank column.  Now I can check if
> > lang_subalbum is set, if not, dynamically call a td colspan=2 and use
> > the whole page width for that album display.
> > ...
> You don't need a template caching library to accomplish this.  c'mon!
> You can do that easily with the code you have.  It's just one more
> template variable.
> > Too bad the core team doesn't want to use it, but I can assure you
> > that many folks will if they want to take advantage of all the new,
> > neat features in Media Gallery :)
> >
> That is such a ridiculous and immature tactic!
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist8.pair.net/pipermail/geeklog-devel/attachments/20071129/c0314d01/attachment.html>

More information about the geeklog-devel mailing list