Not a developer? Go to MovableType.com

Plugin and Theme Directory

RandomArray v1.0.0

By bit part 合同会社
Posted February 25, 2014.

Details

This plugin takes random values from a Movable Type array and returns these values as a new array. ### Download This plugin can be downloaded from the following link: [bit-part/mt-plugin-RandomArray](https://github.com/bit-part/mt-plugin-RandomArray) ### Usage This plugin is very simple to use, however destructive modifiers can be confusing to non-programers (me included), if you are unsure what to do, I recommend pasting the sample template below to your index template and then rebuilding. If you want to run the sample while using dynamic publishing, make sure to give use_dynamic a value of 1 on the first line. * [sample.mtml](https://github.com/bit-part/mt-plugin-RandomArray/blob/master/sample.mtml) ### Modifier #### [](https://github.com/bit-part/mt-plugin-RandomArray/blob/master/README.ja.md#name-%E5%BF%85%E9%A0%88)name (required) The name of the array. #### [](https://github.com/bit-part/mt-plugin-RandomArray/blob/master/README.ja.md#limit-%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3)limit (optional) Sets the limit for how many elements are randomly extracted. The default value is 1. #### [](https://github.com/bit-part/mt-plugin-RandomArray/blob/master/README.ja.md#destructive-%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3)destructive (optional) The "name" array in turn has elements randomly taken from it.

Compatibility

Movable Type versions: 6.06.16.26.36.56.678


Back