From: Arno H. <aho...@us...> - 2000-11-08 16:19:05
|
Update of /cvsroot/phpwiki/phpwiki/templates In directory slayer.i.sourceforge.net:/tmp/cvs-serv22811 Modified Files: README Log Message: explained new ###IF### syntax Index: README =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/templates/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** README 2000/10/08 18:12:14 1.2 --- README 2000/11/08 16:19:01 1.3 *************** *** 47,50 **** --- 47,83 ---- + Conditional placeholders: + + Placeholders that test a condition and depending on it include/omit + certain HTML. These placeholders may be nested. The general syntax + looks like this: + + Line by line: + ###IF xxx### + If condition 'xxx' is false, this line is omitted. + ###IF !xxx### + If condition 'xxx' is true, this line is omitted. + Block: + ###IF:xxx### .... ###ENDIF:xxx### + If condition 'xxx' is false, then everything between the start + and end placeholder is omitted. + ###IF:!xxx### .... ###ENDIF:!xxx### + If condition 'xxx' is true, then everything between the start + and end placeholder is omitted. + + Conditions to test: + + COPY If page has a copy in the archive. Usually used to display/omit + the EditCopy link in the editpage template. + + ADMIN If the current user is an admin. Used in e.g. browse template + to display admin buttons at the top. + + LOCK If current page is locked and thus cannot be edited. + + For examples see browse.html and editpage.html + + + The following placeholders are not available for the 'MESSAGE' template: *************** *** 64,74 **** See hidden input field in EDITPAGE template for how to use it. - ###IFCOPY### - Special placeholder. Should only be used in EDITPAGE template. - If EditCopy link should be shown, then ###IFCOPY### is ignored. - If EditCopy should not be shown, the rest of the line is deleted. - Only for EditLinks: ###1###, ###2###, .... Placeholder for references. Up to NUM_LINKS placeholders will be --- 97,103 ---- See hidden input field in EDITPAGE template for how to use it. Only for EditLinks: + ###1###, ###2###, .... Placeholder for references. Up to NUM_LINKS placeholders will be *************** *** 84,86 **** <head><title>PhpWiki Page: ###PAGE###</title></head> ! see default templates for more examples. --- 113,115 ---- <head><title>PhpWiki Page: ###PAGE###</title></head> ! See the default templates for more examples. |