plugin:meta
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:meta [2018-01-27 15:36] – updated Compatibility to include Frusterick Manners RiseUp | plugin:meta [2022-09-08 17:52] (current) – [Meta Plugin] fiwswe | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : freaks@dokuwiki.org | email : freaks@dokuwiki.org | ||
type : syntax | type : syntax | ||
- | lastupdate : 2015-07-24 | + | lastupdate : 2021-10-16 |
- | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Frusterick Manners | + | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Frusterick Manners, Greebo, Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
Line 22: | Line 22: | ||
===== Description ===== | ===== Description ===== | ||
- | This [[plugins|plugin]] allows you to set [[: | + | This plugin allows you to set [[: |
===== Syntax ===== | ===== Syntax ===== | ||
Line 125: | Line 125: | ||
//This comment 2016-01-02 08:08 by '' | //This comment 2016-01-02 08:08 by '' | ||
+ | |||
+ | ===== Simple patch that allows to use Metadata in your pages ===== | ||
+ | |||
+ | <code diff> | ||
+ | --- syntax.php.orig 2019-08-15 16: | ||
+ | +++ syntax.php 2019-08-16 02: | ||
+ | @@ -43,4 +43,6 @@ | ||
+ | | ||
+ | - if ($mode == ' | ||
+ | - return true; // don't output anything | ||
+ | + if ($mode == ' | ||
+ | + global $ID; | ||
+ | + foreach($data as $key=> | ||
+ | + if($key && (!$value or is_array($value) && !current($value))) $renderer-> | ||
+ | } elseif ($mode == ' | ||
+ | @@ -89,3 +91,3 @@ | ||
+ | // no special treatment for the rest | ||
+ | - } else { | ||
+ | + } elseif( $key && $value ) { | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Now you can put to your pages something like: | ||
+ | My creator is ~~META: | ||
+ | ~~META: | ||
+ | & superadmin=Yay, | ||
+ | & shyuser=Oh, page created by very modest user.. | ||
+ | ~~ | ||
+ | |||
+ | And don't forget that DokuWiki allows you to store any custom Metadata! | ||
+ | |||
+ | --- [[user> | ||
===== How to use the plugin ===== | ===== How to use the plugin ===== |
plugin/meta.1517063786.txt.gz · Last modified: 2018-01-27 15:36 by RiseUp