[MTOS-dev] More docs.... Archive Template Variables

Beau Smith beau at sixapart.com
Tue Apr 15 15:11:51 PDT 2008


Su_

page_id  -->  archive_class  in release-35

docs updated:
http://www.movabletype.org/documentation/designer/archive-template-variables.html

_beau




On Apr 9, 2008, at 9:25 PM, Su wrote:
> On Wed, Apr 9, 2008 at 10:06 PM, Beau Smith <beau at sixapart.com> wrote:
>>> * Doesn't page_id really refer to a CLASS or TYPE of page? Am I
>> I'm willing to change this... but we must change this before 4.15  
>> is out of
>> beta.  Suggestions?
>
> It looks like this value comes from "archive_class" in the modularized
> archive type definitions, yes? I'm looking at
> lib/MT/ArchiveType/Individual.pm line 27 in 4.15b1
> Unless there's some potential case where that name could be ambiguous,
> why bother changing it at all? Make this variable "archive_class" and
> you get automatic consistency and ease of reference. It seems like
> this is what was done for (most of?) the other vars, which is why I
> wasn't sure if there was something more to the name.
>
> This would also remove any potential confusion at the fact that ID
> appearing anywhere in the overall template language always refers to
> item-unique information, and ties in with the new and any future
> *Class tags. These variables aren't strictly part of the template
> language, but they do also come from the app so should probably try
> and fit in with convention where possible.
>
>
>>> * What does "main_template" refer to?
>> Errr.... sorry, this was a variable necessary in the past... but no  
>> longer
>> necessary.
>
> Ah.



More information about the MTOS-dev mailing list