跳到内容

Scout Units List

v0.6.0

duzymaju · 2016年11月23日 上架

Units management system for scout web pages.

正在使用
10 以下
评分
暂无
累计下载
1,360
最近更新
2018年12月31日
需要 WordPress 3.0.0+已测试到 5.0.32

贡献者

This plugin allows you to create a structure of units which are dependent on main one and then present it inside page or post using variety of shortcodes equipped with customizable templates.

Showing units list

Add [sul-units-list id="X"] shortcode, where X is an ID of a base unit. You can use also other attributes:

  • class (string) – allows to add CSS class,
  • current (boolean, false as a default value) – allows to show/hide current unit on a list,
  • external (boolean, false as a default value) – decides if structure should be receive from external source (if so, external source URL in configuration should be defined),
  • levels (integer, 1 as a default value) – allows to define number of levels with dependent units,
  • types (empty as a default value) – allows to define list of types (separated by comma) which have to be showed.

To define your own template create scout-units-list directory in your current theme directory (or define other directory in configuration form) and then create there UnitsList.phtml, UnitsList-Y.phtml or UnitsList-X.phtml file where Y is a type and X is an ID of a base unit. To customize template of dependent units level you have to create in the same location UnitsListLevel.phtml, UnitsListLevel-Y.phtml or UnitsListLevel-X.phtml file as well. To know how to access units data please check default templates in View/Shortcodes directory.

Showing persons list

Add [sul-persons-list id="X"] shortcode, where X is an ID of a base unit. You can use also other attributes:

  • class (string) – allows to add CSS class,
  • external (boolean, false as a default value) – decides if structure should be receive from external source (if so, external source URL in configuration should be defined).

To define your own template create scout-units-list directory in your current theme directory (or define other directory in configuration form) and then create there PersonsList.phtml, PersonsList-Y.phtml or PersonsList-X.phtml file where Y is a type and X is an ID of a base unit. To know how to access units data please check default template in View/Shortcodes directory.

Things to do before stable version release

  1. Add a shortcode which implements a map with selected units marked on it.
  2. Configurable types/subtypes lists and dependencies.

Future plans

  1. Add for each unit a list of changes (versions).
  2. Add for each user a list of position changes (versions).
  3. Sorting/searching on units/positions lists in admin panel.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums