Several days ago I build a new MovableType 2.661 site, "Jedi's S5", which functions making S5 slides show. I see a MT template example from Six Apart. However, my template-set seems to be much rich. Features:
Here is my full notes about it.
First I build a MT site, changing site configuration as below:
/home/jedi/S5
http://Jedi.org/S5/
/home/jedi/S5/slides
http://Jedi.org/S5/slides/
UTC+8 (China coast, Taiwan)
Preference
)s5-<$MTCategoryID$>.html
999
English
Descending
None
Publish
By Category
html
No
No
Yes
No
None
After that, I start modifying templates. First I deleted these unused templates:
There are some templates unused cannot be deleted. I cleared them for security issue:
Now I can work with templates. I modified my Category Archive template to become this: (You can also download it as zipped plain text file, [Archive_Template]_Category.UTF-8.txt.zip )
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><$MTArchiveTitle$> | <$MTBlogName$></title> <meta name="version" content="S5 1.0" /> <meta name="generator" content="Movable Type <$MTVersion$>" /> <meta name="presdate" content="<$MTCategoryDescription$>" /> <MTEntries lastn="1"> <meta name="author" content="<$MTEntryAuthor$>" /> <meta name="company" content="<$MTEntryAuthorURL$>" /> </MTEntries> <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=<$MTPublishCharset$>" /> <meta http-equiv="Content-Language" content="zh-tw" /> <MTEntries lastn="1"> <link rel="stylesheet" href="ui/<MTIfNonEmpty tag="MTEntryKeywords"><$MTEntryKeywords$>/</MTIfNonEmpty>slides.css" type="text/css" media="projection" id="slideProj" /> <link rel="stylesheet" href="ui/<MTIfNonEmpty tag="MTEntryKeywords"><$MTEntryKeywords$>/</MTIfNonEmpty>opera.css" type="text/css" media="projection" id="operaFix" /> <link rel="stylesheet" href="ui/<MTIfNonEmpty tag="MTEntryKeywords"><$MTEntryKeywords$>/</MTIfNonEmpty>print.css" type="text/css" media="print" id="slidePrint" /> <script src="ui/<MTIfNonEmpty tag="MTEntryKeywords"><$MTEntryKeywords$>/</MTIfNonEmpty>slides.js" type="text/javascript"></script> <link rel="author" title="Write to author" href="mailto:<$MTEntryAuthorEmail spam_protect="1"$>" /> </MTEntries> <link rel="copyright" title="Licenses" href="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/" /> <$MTInclude module="cc-rdf-slide"$> </head> <body> <div class="layout"> <div id="currentSlide"></div> <div id="header"></div> <div id="footer"> <MTEntries lastn="1"> <MTEntryCategories> <h1><$MTCategoryDescription$></h1> <h2><$MTCategoryLabel$></h2> </MTEntryCategories> </MTEntries> <div id="controls"></div> </div> </div> <div class="presentation"> <div class="slide"> <h1><$MTArchiveTitle$></h1> <MTEntries lastn="1"> <h3><$MTEntryAuthor$></h3> <h4><$MTEntryAuthorURL$></h4> </MTEntries> </div> <MTEntries lastn="999" sort_order="ascend"> <div class="slide"> <h1><$MTEntryTitle$></h1> <$MTEntryBody$> <div class="handout"> <$MTEntryMore$> </div> </div> </MTEntries> </div> </body> </html>Please note that I wrote something about CC license in it. Please modify that in case you don't choose the same license with me. The template above calls a template module named "
cc-rdf-slide
" which including RDF data of CC license. Here you are: (You still can download this zipped plain text file, [Template_Module]_cc-rdf-slide.UTF-8.txt.zip)<!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <Work rdf:about=""> <MTEntries lastn="1"> <dc:title><MTEntryCategories><$MTCategoryLabel encode_url="1"$></MTEntryCategories> | <$MTBlogName$></dc:title> <dc:date><$MTEntryDate format="%Y"$></dc:date> <dc:description><MTEntryCategories><$MTCategoryDescription encode_url="1"$></MTEntryCategories></dc:description> <dc:creator><Agent> <dc:title><$MTEntryAuthor$></dc:title> </Agent></dc:creator> <dc:rights><Agent> <dc:title><$MTEntryAuthor$></dc:title> </Agent></dc:rights> <dc:source rdf:resource="<MTEntryCategories><$MTCategoryArchiveLink$></MTEntryCategories>"/> <license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/" /> </MTEntries> </Work> <License rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/"> <permits rdf:resource="http://web.resource.org/cc/Reproduction" /> <permits rdf:resource="http://web.resource.org/cc/Distribution" /> <requires rdf:resource="http://web.resource.org/cc/Notice" /> <requires rdf:resource="http://web.resource.org/cc/Attribution" /> <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" /> <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> <requires rdf:resource="http://web.resource.org/cc/ShareAlike" /> </License> </rdf:RDF> -->Again, you should modify this template to use different license.
Now we still have to modify Main Index template. Otherwise we will get a error message during site rebuild! Here is what I have done: (Yes, you can download it as a zipped plain text file, [Index_Template]_Main_Index.UTF-8.txt.zip)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-tw"> <head> <meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" /> <meta http-equiv="Content-Language" content="zh-tw" /> <MTEntries lastn="1"> <meta name="author" content="<$MTEntryAuthor$>" /> </MTEntries> <title><$MTBlogName$></title> <link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" /> <link rel="shortcut icon" href="<$MTBlogURL$>favicon.ico" /> <MTEntries lastn="1"> <link rel="author" title="Mail to author" href="mailto:<$MTEntryAuthorEmail spam_protect="1"$>" /> <link rel="made" href="mailto:<$MTEntryAuthorEmail spam_protect="1"$>" /> <link rel="start" href="<$MTBlogURL$>" title="<$MTBlogName$>" /> <link rel="copyright" title="License" href="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/" /> <$MTInclude module="cc-rdf"$> </head> <body> <div id="banner"> [ <$MTBlogName$> ]<br /> <span class="description"><$MTBlogDescription$></span> </div> <div id="content"> <div class="blog"> <div class="blogbody"> <ol> <MTArchiveList> <li><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li> </MTArchiveList> </ol> </div> </div> </div> <div id="links"> <div class="syndicate"> <!-- Creative Commons License --> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/"> <img alt="Creative Commons License" style="width:88px;height:31px;border:0" src="http://creativecommons.org.tw/somerights20.gif" /></a><br /> All content of this site without other notes are released under <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/">Creative Commons License</a>. <!-- /Creative Commons License --> </div> <div class="powered"> <ul> <li><a href="http://www.movabletype.org"> <img alt="Movable Type" src="http://www.movabletype.org/images/mt-logo-small.gif" style="border:0" title="Powered by: Movable Type <$MTVersion$>" /></a></li><br /> <li><a href="<$MTCGIPath$>mt.cgi" title="Login to MT">Back-end</a></li> </ul><br /> </div> </div> </body> </html>Still, I make a CC license in this template. Feel free to modify it to present what you really want. This template also called a template module named "
cc-rdf
". Here you are: (Yes, again, you can download it as a zipped plain text file, [Template_Module]_cc-rdf.UTF-8.txt.zip)<!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <Work rdf:about=""> <dc:title><$MTBlogName$></dc:title> <dc:date>2004</dc:date> <dc:description><$MTBlogDescription$></dc:description> <dc:creator><Agent> <dc:title><MTEntries lastn="1"><$MTEntryAuthor$></MTEntries></dc:title> </Agent></dc:creator> <dc:rights><Agent> <dc:title><MTEntries lastn="1"><$MTEntryAuthor$></MTEntries></dc:title> </Agent></dc:rights> <dc:source rdf:resource="<$MTBlogURL$>"/> <license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/" /> </Work> <License rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.0/tw/"> <permits rdf:resource="http://web.resource.org/cc/Reproduction" /> <permits rdf:resource="http://web.resource.org/cc/Distribution" /> <requires rdf:resource="http://web.resource.org/cc/Notice" /> <requires rdf:resource="http://web.resource.org/cc/Attribution" /> <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" /> <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> <requires rdf:resource="http://web.resource.org/cc/ShareAlike" /> </License> </rdf:RDF> -->Feel free to modify it.
In order to save time for further MT site to function this, I use the approach I mentioned before to make this file, default-templates.pl.zip. You should backup your original mt/lib/MT/default-templates.pl
, unpack this zip file, and then put default-templates.pl
into mt/lib/MT/
replacing the old one. After this step, all your new Blog will apply these templates as default. But you still have to config blog configuration manually.
We almost done! The last thing you should treat with is to upload files used by S5. Please get this ui.zip, unpack it, upload the whole ui
folder into your Local Archive Path. You have done! Now let's see how it works.
Your Profile
) will appear as Orator's CompanyThat's it. Have fun!
Posted by Jedi at November 2, 2004 12:57 AM | 中文版 (Chinese Version) | TrackBack (0)What the hell are you hosting? The page: http://jedi.org.ua/imho/ is a criminal fraud!
If my paypal account has any problems because of this, I get you prosecuted!
I own Jedi.org only. jedi.org.ua or whatever else is not my business.
Posted by Jedi at March 31, 2005 05:00 PM