NewsFeaturesDownloadsDevelopmentSupportAbout Us

Plugin cookie

From LifeType Wiki

Name: cookie

Download link: http://sourceforge.net/projects/lifetype/files/

License: GPL

Author: Jon Daley

Description

Allows access to HTTP cookies from within your template.

Configuration

Add the something like the following to a template file:

{if $cookie}
  {assign var=lala value=$cookie->getCookie("MyCookie")}
  {if $lala == "test"}
    <img src="test.jpg" />
  {/if}
{/if}

Notes

You should ignore (or use if you find it helpful) the printAlternateStyleSheets() function, that is mostly for some tests I was doing on 0.3.2 and 1.0 that doesn't work so well any more, but I don't want to delete it.