Details
Adds order to entry/page tags.
MT sorts tags alphabetically by default; the OrderedTags plugin maintains order of tags as saved upon entry/page save or edit.
Provides two tags:
<mt:OrderedTags>
- loop tag to output tags in order<$mt:OrderedTagsFeaturedTagName$>
- function tag to output a specific tag, first by default other specified byindex
attribute.
Tags
OrderedTags
Block tag returning tags in the order which they were saved.
<mt:OrderedTags glue=', '><a href="<$mt:TagSearchLink$>"><$mt:TagName$></a></mt:OrderedTags>
Use the <mt:EntryTags>
loop tag to output tags in alphabetical order.
Warning: Entries/Pages saved prior to adding this plugin will have the current alphabetical order preserved.
OrderedTagsFeaturedTagName
Function tag to output specific tag. Default is first tag.
1st tag: <$mt:OrderedTagsFeaturedTagName$>
2nd tag: <$mt:OrderedTagsFeaturedTagName index="2"$>
3rd tag: <$mt:OrderedTagsFeaturedTagName index="3"$>
Installation
- Move the OrderedTags plugin directory to the MT
plugins
directory.
Should look like this when installed:
$MT_HOME/
plugins/
OrderedTags/
Requested Features
Deprecate the tag
OrderedTags
in exchange forsort_order
andsort_by
attributes on theEntryTags
tag.sort_by
- ascend (default), descendsort_order
- label (default), order, etc
Example:
<mt:EntryTags sort_order="ascend" sort_by="order" glue=', '><a href="<$mt:TagSearchLink$>"><$mt:TagName$></a></mt:EntryTags>
Support
This plugin is not an official Six Apart release, and as such support from Six Apart for this plugin is not available.
License
Perl Artistic
Byrne Reese was previously the Product Manager of Movable Type at Six Apart, where he had also held positions as the Manager of Platform Technology and Product Manager for TypePad. Byrne is a huge supporter of the Movable Type user and developer community. He dedicates much of his time to promoting and educating people about Movable Type as well as building the tools and plugins for Movable Type that are showcased on Majordojo. He contributes regularly to open source; and he is an advocate for open protocols and standards like Atom and OpenID.