[dokuwiki] Re: Is it possible to hide the 'meta' information at the bottom of pages using syntax?

  • From: Andreas Haerter <list+dokuwiki@xxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 15 Apr 2011 00:38:44 +0200

Hi Nick,

Am 15.04.2011 00:23, schrieb Nick Putman:
> Andreas Haerter wrote:
>> 2) getID() returns the ID of the page currently viewed. Use someting
>> like this:
>> if (getID() !== "contact") {
>>      tpl_pageinfo();
>> }
> 
> Thanks Andreas.  That works fine for the contact page.  How would I
> include other pages in this statement (I have about 5 pages I would like
> to exclude the meta info)?

E.g. with the logical AND operator (see
<http://www.php.net/manual/language.operators.logical.php>):

if (getID() !== "contact" &&
    getID() !== "foo" &&
    getID() !== "bar" &&
    getID() !== "foobar") {
    tpl_pageinfo();
}

-- 
Andreas <http://blog.andreas-haerter.com>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Other related posts: