PerPage personal setting stored in cookie
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: GoVegan
Comments: 0
Tags:
nav_prev.pngPrevious: thread:352
Non-Existing Page Template
Edited: 20 Apr 2010 12:45 by: GoVegan
Comments: 6
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:129
ListUsers Module
Edited: 21 Mar 2010 14:34 by: leiger
Comments: 3
Tags:
nav_next.png

GabrysGabrys 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.


Start a new sub-thread

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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License