Skip to content

naoaki011/mt-plugin-other-archive-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

<mt:OtherArchiveURL>

A function tag which output archive url of non preffered template map in archive context.

<ul>
    <MTArchiveList archive_type="Category">
        <li><a href="<$MTOtherArchiveURL label="Category Archives of SmartPhone"$>"><$MTArchiveTitle$></a></li>
    </MTArchiveList>
</ul>

This plugin support all of Movable Type default archive type.

Attributes

  • id modifier
  • identifier modifier
  • label modifier
  • archive_file_name modifier
  • map_id modifier

id

<$MTOtherArchiveURL id="24"$>

id is a template_id.

identifier

<$MTOtherArchiveURL identifier="category_listings_for_smartphone"$>

identifier is a template_identifier.

label

<$MTOtherArchiveURL label="Category Archives of SmartPhone"$>

label is a template_label.

archive_file_name

<$MTOtherArchiveURL archive_file_name="%c/%f"$>

archive_file_name is an archive_file_name of archive_mapping.
archive_file_name is enable for concurrent use with other modifiers.

TIP:
'id' and 'identifier' and 'label' and 'archive_file_name' is exclusive.
priority is 'id' > 'identifier' > 'label' > 'archive_file_name'.

map_id

<$MTOtherArchiveURL label="Category Archives of SmartPhone" map_id="30"$>

map_id is a template_map id
If the template has multiple archive_mappings of same context.
map_id is assign to the target archive mapping.

License

This plugin has been released under the terms of the Perl Artistic License.

About

Output ArchiveURL by non Preferred TemplateMap.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages