Not a developer? Go to MovableType.com

Plugin and Theme Directory

SpecificCategory v1.0.0

By bit part 合同会社
Posted February 9, 2014, in MT Tags, Templates, Widgets.

Details

Used alongside the SpecificCategory tag, this plugin is used to set specific category text.

Usage Example

<mt:SpecificCategory>
  Do something.
</mt:SpecificCategory>

`</pre>

## Modifiers

### id

The id modifier specifies the category ID for use when selecting a specific category. If any modifier other than the id is specified, that modifier is ignored with the id taking precedence.

<pre>`<mt:SpecificCategory id="N">
  Do something.
</mt:SpecificCategory>
`</pre>

### label

The label modifier specifies the category label for use when selecting a specific category. 
 If the blog_id is not specified, the category is taken from the current contextual blog.

<pre>`<mt:SpecificCategory label="hogehoge">
  Do something.
</mt:SpecificCategory>
`</pre>

### basename

The basename modifier specifies the category basename for use when selecting a specific category. 
If the blog_id is not specified, the category is taken from the current contextual blog.

<pre>`<mt:SpecificCategory basename="hogehoge">
  Do something.
</mt:SpecificCategory>

blog_id

The blogid modifier specifies the blog ID, which is the blog from where the category is selected. If the blogid is not specified, the category is taken from the current contextual blog.

The blogid modifier works alongside the _label and basename modifiers.

Known Issues

  • This plugin can only be used with static published sites.
  • If there are several of the same label and basename in one blog but on different layers, the desired category might not be successfully retrieved. In this case, you need to use the id modifier to specify the category.

Compatibility

Movable Type versions: 6.0


Back