plugin:meta
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:meta [2015-07-25 12:35] – [Discussion] 109.221.118.231 | plugin:meta [2022-09-08 17:52] (current) – [Meta Plugin] fiwswe | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
- | email : michael@content-space.de | + | email : freaks@dokuwiki.org |
type : syntax | type : syntax | ||
- | lastupdate : 2015-07-24 | + | lastupdate : 2021-10-16 |
- | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun | + | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Frusterick Manners, Greebo, Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : meta, !experimental | tags : meta, !experimental | ||
downloadurl: | downloadurl: | ||
Line 17: | Line 17: | ||
---- | ---- | ||
- | ^ | + | |
+ | :!: [[: | ||
===== Description ===== | ===== Description ===== | ||
- | This [[plugins|plugin]] allows you to set [[: | + | This plugin allows you to set [[: |
===== Syntax ===== | ===== Syntax ===== | ||
- | | '' | + | |
+ | | ||
+ | | ||
+ | |||
+ | ^ key | the metadata element to set | required | | ||
+ | ^ value | the metadata element content | required | ||
- | ^ '' | + | You can set more than one element at once by using an '' |
- | ^ '' | + | |
- | You can set more than one element at once by using an ''&'' | + | ==== An example |
~~META: | ~~META: | ||
Line 60: | Line 65: | ||
===== Bugs / Feature Requests ===== | ===== Bugs / Feature Requests ===== | ||
- | Please report bugs or feature requests at the [[http:// | + | Please report bugs or feature requests at the [[https:// |
===== Further Resources ===== | ===== Further Resources ===== | ||
- | * [[http:// | + | * [[https:// |
- | * [[http:// | + | * [[https:// |
===== Changes ===== | ===== Changes ===== | ||
Line 96: | Line 101: | ||
Hi, I don't get the Plugin to work.[...].--- //This comment 2008-05-05 by '' | Hi, I don't get the Plugin to work.[...].--- //This comment 2008-05-05 by '' | ||
- | + | >I found the Error myself. It was a outdated Template that I used. ;-)--- //This comment 2008-05-05 by '' | |
- | I found the Error myself. It was a outdated Template that I used. ;-)--- //This comment 2008-05-05 by '' | + | |
It did not work on my site (latest release - incognitek template), it did not change my pages ... How can I proceed to see what's wrong ? //This comment 2008-11-01 by '' | It did not work on my site (latest release - incognitek template), it did not change my pages ... How can I proceed to see what's wrong ? //This comment 2008-11-01 by '' | ||
+ | > It does work right now. Is it still wrong for you ? // Olivier Humbert - 2015-07-25 12:33 // | ||
I wonder how to make the array definitions - is there a bug or am I doing something wrong? I tried it in PHP style because the source looked as it would be treated that way: | I wonder how to make the array definitions - is there a bug or am I doing something wrong? I tried it in PHP style because the source looked as it would be treated that way: | ||
Line 109: | Line 114: | ||
> This is not how this was supposed to work, now you can use '' | > This is not how this was supposed to work, now you can use '' | ||
- | =====How-to-use-the-Plugin | + | Hi, i want to set keywords for the searchengines but it do not work ... only change the META:title will work. |
+ | \\ What will be wrong? | ||
+ | |||
+ | ~~META: | ||
+ | title | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | ~~ | ||
+ | |||
+ | //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, page created by superadmin! | ||
+ | & 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 ===== | ||
+ | |||
+ | Please read http:// | ||
- | Please read | ||
- | http:// |
plugin/meta.1437820505.txt.gz · Last modified: 2015-07-25 12:35 by 109.221.118.231