DokuWiki

It's better when it's simple

User Tools

Site Tools


namespace_templates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
namespace_templates [2019-11-14 21:07]
Digitalin maj
namespace_templates [2020-06-08 09:55] (current)
Klap-in [Table] add @!CURNS@,@!!CURNS@ and @!CURNS!@
Line 26: Line 26:
 Inside of the file, you may also use some replacement patterns to make the template a little more dynamic. Inside of the file, you may also use some replacement patterns to make the template a little more dynamic.
  
-^ @ID@     | full ID of the page                                                                    | +^ @ID@              | full ID of the page                                                                    | 
-^ @NS@     | namespace of the page                                                                  | +^ @NS@              | namespace of the page                                                                  | 
-^ @CURNS@  | last part of the namespace of the page                                                 | +^ @CURNS@           | last part of the namespace of the page                                                 
-^ @PAGE@   | page name (ID without namespace and underscores replaced by spaces)                    | +^ @!CURNS@          | same as above but with the first character uppercased                                  | 
-^ @!PAGE@  | same as above but with the first character uppercased                                  | +^ @!!CURNS@         | same as above but with the first character of all words uppercased                     | 
-^ @!!PAGE@ | same as above but with the first character of all words uppercased                     | +^ @!CURNS!@         | same as above but with all characters uppercased                                       
-^ @!PAGE!@ | same as above but with all characters uppercased                                       | +^ @PAGE@            | page name (ID without namespace and underscores replaced by spaces)                    | 
-^ @FILE@   | page name (ID without namespace, underscores kept as is)                               | +^ @!PAGE@           | same as above but with the first character uppercased                                  | 
-^ @!FILE@  | same as above but with the first character uppercased                                  | +^ @!!PAGE@          | same as above but with the first character of all words uppercased                     | 
-^ @!FILE!@ | same as above but with all characters uppercased                                       | +^ @!PAGE!@          | same as above but with all characters uppercased                                       | 
-^ @USER@   | ID of user who is creating the page                                                    | +^ @FILE@            | page name (ID without namespace, underscores kept as is)                               | 
-^ @NAME@   | name of user who is creating the page                                                  | +^ @!FILE@           | same as above but with the first character uppercased                                  | 
-^ @MAIL@   | mail address of user who is creating the page                                          | +^ @!FILE!@          | same as above but with all characters uppercased                                       | 
-^ @DATE@   | date and time when edit session started                                                | +^ @USER@            | ID of user who is creating the page                                                    | 
-^ %a %d-%m-%y etc. | e.g. Thu 06-12-12. [[phpfn>strftime]] placeholders are replaced by page creation time | +^ @NAME@            | name of user who is creating the page                                                  | 
-^ %%       | a literal ''%'' character appears in your template                                     |+^ @MAIL@            | mail address of user who is creating the page                                          | 
 +^ @DATE@            | date and time when edit session started                                                | 
 +^ %a %d-%m-%y etc.  | e.g. Thu 06-12-12. [[phpfn>strftime]] placeholders are replaced by page creation time  
 +^ %%                | a literal ''%'' character appears in your template                                     |
  
  
Line 91: Line 94:
   * [[plugin:Headerfooter]] Plugin adds header text or footer text to pages only when they are displayed.   * [[plugin:Headerfooter]] Plugin adds header text or footer text to pages only when they are displayed.
  
-===== @GROUPS@ support ===== 
- 
-It may be interesting to have support for the ''@GROUPS@'' keyword to extend to the group list of the user creating the page (e.g. to specify a set of tags on a user's home page). The following patch implements it. 
- 
-<code unidiff> 
-Index: dokuwiki-2009-02-14/inc/common.php 
-=================================================================== 
---- dokuwiki-2009-02-14.orig/inc/common.php    2009-11-19 11:58:41.000000000 +0100 
-+++ dokuwiki-2009-02-14/inc/common.php 2010-01-05 10:17:35.000000000 +0100 
-@@ -840,6 +840,7 @@ 
-                         '@USER@', 
-                         '@NAME@', 
-                         '@MAIL@', 
-+                        '@GROUPS@', 
-                         '@DATE@', 
-                      ), 
-                      array( 
-@@ -855,6 +856,7 @@ 
-                         $_SERVER['REMOTE_USER'], 
-                         $INFO['userinfo']['name'], 
-                         $INFO['userinfo']['mail'], 
-+                        implode(" ", $INFO['userinfo']['grps']), 
-                         $conf['dformat'], 
-                      ), $tpl); 
-  
- 
-</code> 
- 
- --- //[[shtrom-doku@ssji.net|Olivier Mehani]] 2010/01/05 10:19// 
  
namespace_templates.1573762040.txt.gz · Last modified: 2019-11-14 21:07 by Digitalin