Keşfet

Templates: show content only if a cookie is set

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,201
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
Hello,
In the PAGE_CONTAINER template, I would like to show some custom content only if a particular cookie (let's call it "mycookie") is NOT set.
What's the easiest way? I have read some posts in the forum, including a post about the use of:

$xf.app.request.getCookie('mycookie')

but I don't know how to integrate this with the template code and to use it as conditional statement.

Thanks!
 

Konu görüntüleyen kullanıcılar

Benzer konular

Geri
Üst Alt