Not a developer? Go to MovableType.com

Plugin and Theme Directory

Ordered Tags v1.0

By Byrne Reese
Posted October 7, 2010, in MT Tags, Templates, Widgets.

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 by index 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

  1. 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 for sort_order and sort_by attributes on the EntryTags tag.

    • sort_by - ascend (default), descend
    • sort_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


Back

3 Comments

Sunil Shrestha

Sunil Shrestha on August 6, 2016, 4:15 p.m. Reply

Great Sharing. 192.168.1.1

Violet Yu

Violet Yu on June 22, 2017, 7:03 p.m. Reply

Hi Sunnil! It looks like you and I have the same taste in plugins for MT. I have really been getting a lot more from www.bohoweddinginvitations.com now that I have been making more use of the plugins. If you haven’t tried it already I would also suggest the notify plugin it seems like it has a lot of great potential to engage the users on your site.

Sunil Shrestha

Sunil Shrestha on August 6, 2016, 4:41 p.m. Reply

Great.

192.168.1.1

Leave a Comment

Byrne Reese

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.

Website: http://profile.typekey.com/byrnereese