User Tools

Site Tools


wiki:plugins:include

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:plugins:include [2007/08/14 15:52] – external edit 127.0.0.1wiki:plugins:include [2009/06/08 11:33] (current) jas
Line 17: Line 17:
  
   * ''page'' doesn't attempt to merge indentation, allowing the include to be used within other block syntax modes. Don't use multiple instances of ''%%{{page>...}}%%'' in the same section as it will cause indention problems.   * ''page'' doesn't attempt to merge indentation, allowing the include to be used within other block syntax modes. Don't use multiple instances of ''%%{{page>...}}%%'' in the same section as it will cause indention problems.
-  * ''section'' will attempt to align the include information with the current indentation level, allowing sections to be included seemlessly. This should only be used in plain DokuWiki markup as it will result in invalid XHTML if used within other blocks.+  * ''section'' will attempt to align the include information with the current indentation level, allowing sections to be included seamlessly. This should only be used in plain DokuWiki markup as it will result in invalid XHTML if used within other blocks.
  
 Section is aimed more at including sections and page at including whole pages, however both can be used to include whole pages or individual sections. The key difference is how they will interact with sections and block syntax modes on the host wiki page. Section is aimed more at including sections and page at including whole pages, however both can be used to include whole pages or individual sections. The key difference is how they will interact with sections and block syntax modes on the host wiki page.
  
-==== Macros ====+===== Configuration ===== 
 + 
 +The plugin can be configured in the DokuWiki configuration manager available in the admin menu.  
 + 
 +^ ''noheader'' | Don't display the header of the inserted section | 
 +^ ''firstseconly'' | Display only the first section of the included page | 
 +^ ''showtaglogos'' | Show/hide an image for the first tag (if the page has tags) | 
 +^ ''showfooter'' | Show/hide page footer below the included page | 
 +^ ''showlink'' | Makes the first headline of a included page/section a link to the included page/section | 
 +^ ''showpermalink'' | Show/hide a permalink to the included page in the page footer | 
 +^ ''showdate'' | Show/hide creation date of the page in the page footer | 
 +^ ''showuser'' | Show/hide user name of the page creator in the page footer | 
 +^ ''showeditbtn'' | Show/hide edit button below the included page | 
 +^ ''usernamespace'' | Namespace for user pages (see ''showuser'' configuration) (default ''user'') | 
 + 
 +===== Macros =====
  
 Simple macros are possible to serve a page on a per user or per date base. These are: Simple macros are possible to serve a page on a per user or per date base. These are:
Line 44: Line 59:
 | ''firstseconly'' ^ ''fullpage'' | includes the whole page ^ ''firstseconly'' | includes only the first section of a wiki page | | ''firstseconly'' ^ ''fullpage'' | includes the whole page ^ ''firstseconly'' | includes only the first section of a wiki page |
 | ''showfooter'' ^ ''footer'' | shows a footer below the page with info about the included page ^ ''nofooter'' | hides the page info footer | | ''showfooter'' ^ ''footer'' | shows a footer below the page with info about the included page ^ ''nofooter'' | hides the page info footer |
 +| ''showeditbtn'' ^ ''editbtn'' | shows a button to edit (or create) the included page ^ ''noeditbtn'' | hides the edit (or create) button |
 +| - | - | - ^ ''noheader'' | strips the title from the included page |
  
 Example: Example:
wiki/plugins/include.1187121131.txt.gz · Last modified: 2009/06/08 11:32 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki