[geeklog-devel] Reducing Template Files

Tom websitemaster at cogeco.net
Tue Jun 18 09:28:50 EDT 2013


Thanks for the input Joe, I think it was the Media Gallery plugin where
Dengen had seen it before and I believe at that time I had found some docs
about the feature on a Geeklog 1.3.x release.

I plan on reducing a few templates for now mainly using the block method as
I have to do very minimal code changes in core to get them to work (removing
setting the template file and just set them as blocks).  

At some point in a future version of Geeklog I would like to revisit and add
loops and if statements along with using Lang arrays in our main themes.

Tom


-----Original Message-----
From: geeklog-devel-bounces at lists.geeklog.net
[mailto:geeklog-devel-bounces at lists.geeklog.net] On Behalf Of Joe Mucchiello
Sent: June-18-13 2:35 AM
To: Geeklog Development
Subject: Re: [geeklog-devel] Reducing Template Files

The old GUS plugin used it. Media gallery uses it. Several other old plugins
used it. One of the most difficult parts of creating the CTL was emulating
these block functions.

I have no idea why it was never used in core Geeklog.

CTL adds If/Else and Loop functions that can also be used to reduce the
number of templates. And they do it cleaner than the block functions since
you don't have to add block calls to the code to use them. I still find
coding for the block functions odd.

> Actually this has been part of the original template library for a while.
> Dengen used it in the page navigation about a year ago and I forget 
> where he said he found out about the code.  It is documented somewhere 
> but of course I cannot find it now.
>
> Tom


_______________________________________________
geeklog-devel mailing list
geeklog-devel at lists.geeklog.net
http://eight.pairlist.net/mailman/listinfo/geeklog-devel




More information about the geeklog-devel mailing list