Last: thread:348
Page variables
Edited: 28 Mar 2010 12:48 by: leiger
Comments: 2
Next: thread:349
This is browser-dependent, and not user-dependent
Edited: 28 Mar 2010 12:56 by: leiger
Comments: 1

leigerleiger wrote on 06 Apr 2010 06:44

Would it be possible for an "IfCookie" syntax, similar to "IfTags", which allows the ability to check the cookie value outside of a module?

My use case is that I am including a signature in a forum by using this code for each post:

[[include signature:%%created_by%%]]

(The error message for if the page doesn't exist is hidden with CSS)

An "IfCookie" syntax would allow me to do something like this:

[[ifcookie show-signature="yes"]]
[[include signature:%%created_by%%]]

[[ifcookie show-signature="no"]]
[[collapsible show="click here to show the signature (auto hidden)" hide="hide signature"]]
[[include signature:%%created_by%%]]

Two questions for Gabrys (or anyone else on the development team):

  1. Is this easy/hard to implement?
  2. Can you see any design flaws/areas for improvement in this idea?

Start a new sub-thread

Comments: 3

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