Gabrys wrote on 28 Mar 2010 12:30
Related wish
A cookie to allow the reader to set himself the perPage value
Included page "wish:227" does not exist (create it now)
How to do this:
ListPages improvement:
allow perPage="@COOKIE{name}", for example:
[[module ListPages perPage="@COOKIE{per-page}|20"]]
[[/module]]
SetCookies module
[[module SetCookies]]
fields:
per-page:
name: "Posts per page: "
values:
10: 10
20: 20
50: 50
100: 100
[[/module]]
This would displays a form (the syntax equals to normal data form syntax) that sets cookies (and not page properties).
Cookie name would be field name prefixed with some fixed string, so that admins can't alter functional Wikidot cookies.
Current cookie value would be the value selected in the form.
You can use the cookie value wherever @COOKIE{cookie-name} is supported (at least in perPage ListPages attribute).
Cookie is valid for given domain only (not passed from/to custom domains or *.wdfiles.com domain) for a predefined (long) duration. Cookie is set per-browser, not per-user. This makes it working for anonymous users, but is not perfect for Wikidot users.
IfCookie | By leiger | 3 Comments | 06 Apr 2010 06:44 |
This is browser-dependent, and not user-dependent | By leiger | 1 Comments | 28 Mar 2010 12:54 |
Page variables | By leiger | 2 Comments | 28 Mar 2010 12:47 |
We discourage direct comments on this thread: to discuss it, please start a sub-thread.