Code Monkey home page Code Monkey logo

dokuwiki-plugin-condition's Introduction

Condition Plugin for DokuWiki

Use :

<if [condition_list]>doku code</if>
or <if [condition_list]>doku code<else>doku code</if>

[condition_list] is a set of [condition] records separated by logical operators (&&, and, ||, or, ^, xor for now), use of parenthesis is allowed, negation is achieved by using heading ! (ex !foo=bar or !(a=b || c<d) )

[condition] is formed from a [key], followed by an [operator] (optionnal) and then a [value] (optionnal)

[key] is in the list (defined in base_tester.php as of 2009/06/10) :
	- user : refers to the user "login" (like in $_SERVER['REMOTE_USER'])
	- group : refers to the user group-set
	- nsread : refers to the ability of the user to read a namespace
	- nsedit : refers to the ability of the user to edit a namespace
	- IP : refers to the client's IP address

[operator] signification is [key] dependent, for example :
	- = (==) : equality, membership, read/edit ability on ...
	- != : non-equality, non-member, no read/edit ability on ...
	- ...
	(browse base_tester.php for test_* methods for more information)

[value] can be a string (whitespace, ) and > free) or a " delimited string (whitespaces, ) and > are then allowed)

All documentation for the User Subscriptions Plugin is available online at: http://wiki.splitbrain.org/plugin:condition

(c) 2009 by Etienne Meleard [email protected], (c) 2013 by Gerry Weißbach [email protected] See COPYING for license info.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.