plugin:mypage
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:mypage [2009-09-27 17:23] – created 85.228.118.248 | plugin:mypage [2023-10-30 23:23] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Mypage | + | ====== Mypage |
---- plugin ---- | ---- plugin ---- | ||
Line 7: | Line 7: | ||
type : Action | type : Action | ||
lastupdate : 2009-09-27 | lastupdate : 2009-09-27 | ||
- | compatible : 2009-02-14 | + | compatible : Anteater |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : users, userpage |
---- | ---- | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Download the '' |
- | * FIXME put URL here | + | No download package available at the moment. |
+ | ===== Dependencies ===== | ||
- | For manual installation, see [[mypage# | + | No other plugins are required, but any plugins capable of displaying information related to a specific user are useful, such as |
+ | * The [[editor]] plugin, to show a list of pages edited by the currently logged in user. | ||
===== How to use it ===== | ===== How to use it ===== | ||
- | Add an action link in you template: | + | - Add an action link in you template |
- | + | | |
- | | + | |
- | + | * or a file called | |
- | Create a page template for the page "My page": | + | |
- | + | ||
- | ====== My page ====== | + | |
- | + | ||
- | Create a page with the name '' | + | |
This example uses the [[editor]] plugin to display a list of pages edited by the current user. | This example uses the [[editor]] plugin to display a list of pages edited by the current user. | ||
- | <file _mypage.txt> | + | <code dokuwiki |
====== My page ====== | ====== My page ====== | ||
Line 43: | Line 40: | ||
{{editor>? | {{editor>? | ||
- | </file> | + | </code> |
+ | |||
+ | * See [[: | ||
+ | * As this page is only a template, you can choose to make it invisible using the ACL. | ||
- | Supported macros in the page template are @NS@, @NAME@, @USER@, @MAIL@ and @DATE@. | + | To display |
+ | http:// | ||
===== Source code ===== | ===== Source code ===== | ||
- | For manual installation, | + | For manual installation, |
- | <file action.php> | + | < |
<?php | <?php | ||
/** | /** | ||
Line 62: | Line 63: | ||
*/ | */ | ||
- | // must be run within | + | // must be run within |
if(!defined(' | if(!defined(' | ||
Line 174: | Line 175: | ||
// we need the callback to work around strftime' | // we need the callback to work around strftime' | ||
- | $tpl = preg_replace_callback('/ | + | $tpl = preg_replace('/%./e',' |
return $tpl; | return $tpl; | ||
} | } | ||
Line 184: | Line 185: | ||
===== Comments ==== | ===== Comments ==== | ||
- | |||
- |
plugin/mypage.1254064989.txt.gz · Last modified: 2009-09-27 17:23 by 85.228.118.248