InitialFilter - Movable Type Plugin
Set an initial filter to a list page built Listing Framework.
- Movable Type 6
- Download an archive file from releases.
- Unpack an archive file.
- Upload unpacked files to the MT
Should look like this when installed:
$MT_HOME/ plugins/ InitialFilter/
Set value of YAML format to InitialFilter Plugin Setting of Website/Blog.
Setting information is the following:
<The value of "_type" parameter>: id: <Filter ID> force: <Set 1 if you always wont to set the initial filter>
If you apply user filter to Entry List and apply
draft filter to Page List, the sample is the following:
entry: id: 1 force: 1 page: id: draft force: 1
How to find
You can find out about
id set above YAML by the following steps:
- Make a new filter and save it.(If you use a built-in filter, you can skip this step.)
- Apply the new filter.
- Reload the page.
- View source code of the page.
- Search the code for
var initial_filter =.
- Get the value of
idin value of