[pmwiki-users] httpvariables

noskule noskule at gmx.net
Thu Mar 20 10:32:09 CDT 2008


hi list
I'm looking for a way to set coockies via url link but can't find a way 
how to apply the changes without reloading the page for a secound time.

@Martin: could you provide an option for setting the path where the 
cookie is uses eg.
    (:cookie sectionborders 1 {*$Group}:)

thanks for any hints
nos


Test:
(:if equal {$@sectionborders} 1:)
border: yes
(:else:)
border: no
(:ifend:)

Config  Links:
(:if equal {$@sectionborders} 1:)
* [[{*$FullName}?sectionborders=0|Hide Sectionborder]]
(:else:)
* [[{*$FullName}?sectionborders=1|Show Sectionborder]]
(:ifend:)

Set Cookies:
(:if equal {$?sectionborders} 1:)
(:cookie sectionborders 1:)
(:else:)
(:cookie sectionborders 0:)
(:ifend:)



More information about the pmwiki-users mailing list