Is it possible to check for a cookie from within a template? The cookie is set based on visitor preferences and I just want to check if it exists.
In PHP I would write:
If it is not possible to access cookies within the template could anyone point to an easy way to do it without editing files that I might overwrite when I upgrade?
In PHP I would write:
Code:
if(isset($_COOKIE["preferences"])) {
// insert javascript code here
} else {
// insert different javascript code here
}
If it is not possible to access cookies within the template could anyone point to an easy way to do it without editing files that I might overwrite when I upgrade?