[MTOS-dev] MT 4.15 Beta now available

Reed A. Cartwright reed at scit.us
Mon Apr 7 08:59:07 PDT 2008


Byrne Reese wrote:
> http://www.movabletype.org/2008/04/movable_type_415_beta_1_now_av.html

A new plugin that I'm working towards requires a lot of template module 
work, to provide maximum flexibility to endusers.  However, to avoid 
adding six templates, I was thinking of using one template that would 
use an argument to determine which sub template would get saved, e.g.

<mt:Include module="Xomment" xmode="quote"/>

<mt:Include module="Xomment" xmode="panel"/>

Then in the template I'd do something like so:

<mt:If name="xmode" eq="quote">
Quote
<mt:else name="xmode" eq "panel">
Panel
<mt:else>
Unknown option
</mt:if>

So will caching interfere with this or does module caching understand 
different variables passed to the include command?

If not, it should be an option.

-- 
*********************************************************
Reed A. Cartwright, PhD     http://scit.us/
Postdoctoral Researcher     http://www.dererumnatura.us/
Department of Genetics      http://www.pandasthumb.org/

Bioinformatics Research Center
North Carolina State University
Campus Box 7566
Raleigh, NC 27695-7566

Cuiusvis hominis est errare, nullius nisi
insipientis in errore perserverare. --Cicero


More information about the MTOS-dev mailing list