Site Tools


wiki:pluginsyntax:nspages

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:pluginsyntax:nspages [2023/11/01 02:32] – [Option -sidebar] Alan Sheawiki:pluginsyntax:nspages [2023/11/01 02:45] (current) – [Manual] Alan Shea
Line 116: Line 116:
 |  <code>-sidebar</code>  |You should use this if you use nspages to display a dynamic list of items in a sidebar. See [[#option_-sidebar|below]] for more information| |  <code>-sidebar</code>  |You should use this if you use nspages to display a dynamic list of items in a sidebar. See [[#option_-sidebar|below]] for more information|
  
-ex: ''<nspages path_to_a_namespace -exclude>'' or ''<nspages -subns -nopages>'' will work.+ex: ''%%<nspages path_to_a_namespace -exclude>%%'' or ''%%<nspages -subns -nopages>%%'' will work.
  
 ===== Installation ===== ===== Installation =====
Line 167: Line 167:
   * With version older than 2014-08-10, you should put ''%%~~NOCACHE~~%%'' in the pages where you use this plugin, to make sure that if you create or remove a page in the namespace, it will be taken into account. Now, nspages automatically deactivate the cache on the pages where it is used (you can deactivate this behaviour on the admin panel).   * With version older than 2014-08-10, you should put ''%%~~NOCACHE~~%%'' in the pages where you use this plugin, to make sure that if you create or remove a page in the namespace, it will be taken into account. Now, nspages automatically deactivate the cache on the pages where it is used (you can deactivate this behaviour on the admin panel).
   * The CSS sheet should be taken into account in order for this plugin to work correctly; but because of the cache system it may not be the case the first time you use this plugin (even if ''%%~~NOCACHE~~%%'' is specified). The easier way to resolve this is to make sure your cache is invalidated by touching ''conf/local.php'' (eg. by resaving your configuration)   * The CSS sheet should be taken into account in order for this plugin to work correctly; but because of the cache system it may not be the case the first time you use this plugin (even if ''%%~~NOCACHE~~%%'' is specified). The easier way to resolve this is to make sure your cache is invalidated by touching ''conf/local.php'' (eg. by resaving your configuration)
-  * Currently, you may not use a ''>'' in the ''-textPages'' and ''-textNS'' options, since it is understood as the end of the <nspages> tag+  * Currently, you may not use a ''>'' in the ''-textPages'' and ''-textNS'' options, since it is understood as the end of the ''%%<nspages>%%'' tag
   * When you change the default markup inserted by the toolbar button (throught the admin dashboard), you may need to purge your caches to have this change taken into effect (see also the [[https://github.com/gturri/nspages/issues/23|bug report]]):   * When you change the default markup inserted by the toolbar button (throught the admin dashboard), you may need to purge your caches to have this change taken into effect (see also the [[https://github.com/gturri/nspages/issues/23|bug report]]):
     * [[doku>:caching#purging_the_cache|Clean the cache]] of you DokuWiki      * [[doku>:caching#purging_the_cache|Clean the cache]] of you DokuWiki 
     * Force your browser to reload it's cache, typically by pressing Ctrl+F5, or Shift+F5     * Force your browser to reload it's cache, typically by pressing Ctrl+F5, or Shift+F5
  
 +===Local Example:== 
 +<nspages>
wiki/pluginsyntax/nspages.1698805973.txt.gz · Last modified: 2023/11/01 02:32 by Alan Shea