- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 19,826
- راهحلها
- 27
- پسندها
- 3,258
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.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!
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!
نام موضوع : Templates: show content only if a cookie is set