|
TagSupplementals_Plugin
TagSupplementals PluginThis page is obsoleted. Current version of TagSupplementals will be available from TagSupplementals. Adds supplemental features to Movable Type 3.3 and 4.0 ''tags''.
Changes
OverviewNow Movable Type 3.3 supported tagging features natively. But I think it is not so convenient because of the lack of varieties of the features for tagging. TagSupplementals Plugin is intended to provide supplemental features, in addition to the standard MT tags for tagging. And now it provides the following:
How To InstallTo install this plugin, upload or copy 'TagSupplementals.pl' into your Movable Type's plugin directory. After proper installation, you will see a new "TagSupplementals Plugin" listed on the Main Menu of your Movable Type. Available Template Tags and FiltersMTEntryTagsCount variable tagShows the number of tags which current entry has. OptionsNothing. Examples<MTEntries> Tag Count: <$MTEntryTagsCount$> </MTEntries> MTRelatedEntries container tagA container tag for listing entries related to the current entry. MTRelatedEntries calculates ''relevance'' between the current entry and each other entries, based on weighted sum of co-occured tags, and then listed entries which have the highest total ''relevance''s. This container can only be used in "entry context" which means "the inside of MTEntries" or Individual Archives. Options
ExamplesTo list 10 most related entries for the current entry: <MTEntries lastn="10">
<h2><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h2>
<$MTEntryBody$>
<ul>
<MTRelatedEntries lastn="10">
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTRelatedEntries>
</ul>
</MTEntries>MTRelatedTags container tagA container tag for listing tags related to the current tag. The relationship between tags is defined by how many common entries includes them. This container can only be used in "tag context" which means the inside of MTTags, MTEntryTags, or MTXSearchTags. Option(s)
ExampleTo list tags of the entries and their related tags, and to link all of them to Technorati: <MTEntries lastn="10">
<h2><$MTEntryTitle$></h2>
<ul>
<MTEntryTags>
<li><a href="http://www.technorati.com/tag/<$MTTagName encode_url="1"$>"
rel="TAG"><$MTTagName$></a>
<ul>
<MTRelatedTags>
<li><a href="http://www.technorati.com/tag/<$MTTagName encode_url="1"$>"
rel="TAG"><$MTTagName$></a></li>
</MTRelatedTags>
</ul>
</li>
</MTEntryTags>
</ul>
<$MTEntryBody$>
</MTEntries>MTArchiveTags container tagA container tag for listing tags of entries included in the current archive. This container can only be used in dated-based archives and category archives. Option(s)
ExampleTo list tags of entries included in the current archive, and to link all of them to Technorati: <h2>Tags in this archive</h2>
<ul>
<MTArchiveTags>
<li><a href="http://www.technorati.com/tag/<$MTTagName encode_url="1"$>"
rel="TAG"><$MTTagName$></a></li>
</MTArchiveTags>MTTagLastUpdated variable tagShows the last date the tag added. Option(s)As well as MTEntryDate, "format", "language", and "utc" options are avaiable. Example<ul> <MTEntryTags> <li><$MTTagName$> (<$MTTagLastUpdated$>)</li> </MTEntryTags> </ul> encode_urlplus global filterA variation of encode_url filter. First this filter converts whitespaces of the target string into '+'s, and then converts it into URL-safe string. ExampleWhen generating URL strings, encode_urlplus can replace encode_url like as follows:
</mtentrytags>
MTSearchTags container tagA container tag for listing the query string of MT-Search as tags. It can only be used in "Search Results" Template. Option(s)
ExampleTo list tags given by the query string of MT-Search and their related tags, and to link them to Technorati: <MTSearchTags>
<h2><$MTTagName$></h2>
<ul>
<MTRelatedTags>
<li><a href="http://www.technorati.com/tag/<$MTTagName encode_url="1"$>"
rel="TAG"><$MTTagName$></a></li>
</MTRelatedTags>
</ul>
</MTSearchTags>MTXSearchTags container tag''This tag requires to install MT-XSearch.'' A container tag for listing the query string of MT-XSearch as tags. It can only be used in "MT-XSearch" Template. Option(s)
ExampleTo list tags given by the query string of MT-XSearch and their related tags, and to link them to Technorati: <MTXSearchTags>
<h2><$MTTagName$></h2>
<ul>
<MTRelatedTags>
<li><a href="http://www.technorati.com/tag/<$MTTagName encode_url="1"$>"
rel="TAG"><$MTTagName$></a></li>
</MTRelatedTags>
</ul>
</MTXSearchTags>MTTagXSearchLink variable tag''This tag requires to install MT-XSearch.'' A variable tag for the tag search URL by using MT-XSearch. In short, it is an alternative variable tag of MTTagSearchLink for MT-XSearch. Option(s)Nothing. Example<ul> <MTEntryTags> <li><a href="<$MTTagXSearchLink$>"><$MTTagName$></a> </MTEntryTags> </ul> MT-XSearch supportTBD See AlsoLicenseThis code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html. Author & CopyrightCopyright 2006, Hirotaka Ogawa (hirotaka.ogawa at gmail.com) |