Notes: MovableType Templates for LTA Site
Below you will find links to text versions of all the MovableType templates used for the LTA site. Note that you will find a few things that are specific to our site and server, so it may not work as a cut and paste copy.
- Index Templates
- About (about.php) -- a static page that is used as a link to provide more detailed information about the site [template] [view example output]
- Main Index (index.php) -- This is the (duh) main page for the site [template] [view example output]
- RSS 2.0 index (index.xml) -- The main site RSS feed [template] [view example output]
- RSS For Comments (comments.xml) --This RSS 2.0 feed provides a summary of the comments site wide [template] [view example output]
- Comments (comments.php) -- A summary page describing the comments feed and displaying the most recent ones using the RSS Comment Feed and displayed with JavaScript generated by Feed2JS [template] [view example output]
- All Archives (all.php) -- An archive that generates a list of all LTAs in reverse chronological order [template] [view example output]
- Authors (author.php) -- A dynamic page that uses PHP and MySQL queries to generate an archive of all LTA authors as well as a listing of the LTAs by a single author if a parameter is provided to designate the MT user name [template] [view example output for all authors or view an example of a single author)]
- Style Sheet (styles-site.css) [link]
- Archive Templates
- Cateogory Archive- generate the topical category pages- will be automatically generate a new one if a category is added. [template] [view example output]
- Individual Entry Archive- used to generate a single LTA. The file name is based on a keyword field entry of ltaXX where XX is the LTA number, and the archive settings in the Weblog config define this name according to the code:
<MTIfEmpty var="EntryKeywords"><$MTEntryTitle dirify="1" trim_to="20"$> </MTIfEmpty> <MTIfNotEmpty var="EntryKeywords"><$MTEntryKeywords dirify="1"$> </MTIfNotEmpty>.php
This makes use of the MTIfEmpty plugin that will assign a file name based on the entry keywords, and if for some reason there is none, it will name the file based on the first 20 characters of the first name [template] [view example output]
- Misclleanous Templates Note that the comments entry fields on this blug use James Seng's MT Security Code plugin that forces comment entries to verify a randomly generated graphic code to reduce the efforts of spammers.
- Template Modules Code reused elsehwew in templates, e.g.:
<$MTInclude module="topnav"$>
to insert the contents of the topnav module.- Comments/Trackback JavaScript (comm-tb-js) -- This module is referenced wherever we need two functions to generate the popup windows for Comments or Trackbacks. This uses a customized function that makes it a little harder for spammers to harvest direct URLs for your scripts that replaces the standard functions referenced in the out of the box MovableType templates. [template]
- Sidebar (navbar) -- used whereever we need the code for the sidebar [template]
- Top Navigation Bar Module (topnav) -- This is used to display the grey navigation bar used below the banner on every page. [template]
0 Comments:
Post a Comment
<< Home