DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:nodisp

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
plugin:nodisp [2021-07-26 20:27] – [The syntax for the second case] turnermmplugin:nodisp [2023-10-30 23:24] (current) Klap-in
Line 6: Line 6:
 email      : turnermm02@shaw.ca  email      : turnermm02@shaw.ca 
 type       : syntax type       : syntax
-lastupdate : 2021-06-05 +lastupdate : 2022-09-14 
-compatible : 2009-02-14lemminganteaterrincewindanguaadora bellehrun, Elenor Of Tsort, detritusfrusterick mannersgreebohogfather+compatible : Lemming, Anteater, Rincewind, AnguaAdora BelleWeatherwaxBinkyPonder StibbonsHrunDetritus, Elenor of Tsort, Frusterick MannersGreeboHogfatherIgor
 depends    :  depends    : 
 conflicts  conflicts 
Line 62: Line 62:
 The ACL levels are described in the [[:acl#background_info|acl documentation]].  The ACL levels are described in the [[:acl#background_info|acl documentation]]. 
  
-=== Newline syntax ===+==== Newline syntax ===
 +<code> 
 +{nodisp} your text here {/nodisp} 
 + 
 +{nodisp} 
 +your text here 
 +etc 
 +{/nodisp} 
 + 
 +{nodisp acl} your text here {/nodisp} 
 + 
 +{nodisp acl} 
 +your text here 
 +etc 
 +{/nodisp} 
 +</code> 
 +The ''<nodisp. . . >'' syntax sets off blocks of text. If you place two blocks, one after the other, there will be a paragraph break between the two.  The newline syntax treats the enclosed text as a single line unless an extra newline (CR/LF) or the DokuWiki newline markup is inserted. This conforms to the practice of the DokuWiki editor. If you place one newline entry above another, they will continue on the same line unless a newline is inserted. See https://github.com/turnermm/nodisp/issues/
 + 
 +If you are upgrading from an earlier version of nodisp, which does not support the newline syntax, you will have to remove the file syntax.php from the root directory of the plugin.  This is now replaced by a new file called basic.php in the syntax directory.  
 + 
 +==== Group Syntax ==== 
 +It is also possible to limit access to the hidden material by group. The syntax is the same as for the other cases, except that ACL numbers are replaced by a group names.  
 + 
 +<code> 
 +<nodisp group> 
 +Restricted Data 
 +</nodisp> 
 + 
 +{nodisp group}Restricted Data{/nodisp}  
 +</code> 
  
-The ''<nodisp. . . >'' syntax set off blocks of text.  There  is now a newline syntax in developmentwhich treats the enclosed text as a single line unless an extra newline (CR/LF) or the DokuWiki newline markup is inserted, as in the DokWiki editor.  See https://github.com/turnermm/nodisp/issues/3+**Notice:** The group name does not use the at-sign; it is ''group'', not ''@group''.  
 ===== Development ===== ===== Development =====
  
plugin/nodisp.1627324023.txt.gz · Last modified: 2021-07-26 20:27 by turnermm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki