plugin:labeled
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:labeled [2015-02-24 20:53] – version upped andi | plugin:labeled [2024-01-08 17:01] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action, admin | type : action, admin | ||
- | lastupdate : 2013-12-15 | + | lastupdate : 2016-07-06 |
- | compatible : hrun | + | compatible : Hrun |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
downloadurl: | downloadurl: | ||
Line 20: | Line 20: | ||
screenshot_img : | screenshot_img : | ||
---- | ---- | ||
- | [[http:// | + | |
+ | [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
:!: **External requirements: | :!: **External requirements: | ||
- | * [[plugin: | + | * [[plugin: |
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
+ | |||
===== Examples/ | ===== Examples/ | ||
Available Labels can be defined admin-page of the labeled plugin. | Available Labels can be defined admin-page of the labeled plugin. | ||
+ | ==== Embed in Template ==== | ||
- | ===== Development ===== | + | You can add the labeled component directly into your template' |
+ | <code php> | ||
+ | <?php | ||
+ | //show labels only if user has access to page. Works on wikis with disabled acl too. | ||
+ | if (auth_quickaclcheck(getID()) >= AUTH_READ) { | ||
+ | //check if sqlite plugin exists, labeled plugin requires it. | ||
+ | if (!plugin_isdisabled(' | ||
+ | //Labeled | ||
+ | $labeled = plugin_load(' | ||
+ | if($labeled) echo $labeled-> | ||
+ | } | ||
+ | } | ||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | Users of the [[template: | ||
+ | |||
+ | === Using with Vector Template === | ||
+ | |||
+ | Users of the [[template: | ||
+ | |||
+ | <code php> | ||
+ | //show labels only if user has access to page. Works on wikis with disabled acl too. | ||
+ | if (auth_quickaclcheck(getID()) >= AUTH_READ) { | ||
+ | //check if sqlite plugin exists, labeled plugin requires it. if it doesn' | ||
+ | if (!plugin_isdisabled(' | ||
+ | $labeled = plugin_load(' | ||
+ | if($labeled ) { | ||
+ | $_vector_boxes[" | ||
+ | $_vector_boxes[" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Development ===== | ||
{{rss> | {{rss> | ||
Line 40: | Line 79: | ||
Please refer to the [[https:// | Please refer to the [[https:// | ||
- | |||
- | |||
plugin/labeled.1424807601.txt.gz · Last modified: 2015-02-24 20:53 by andi