HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Disable pocket
Hi all,
Anyone know how could I disable a pocket just in a page (like in profile page)?
Thank you a lot.
P.s. I'm running Vanilla 2.8.1
Tagged:
0
Comments
If using pockets in your template, you can use smarty I conditional. See:
That's interesting, but how to NOT show only in one page?
Maybe something like
{if not InSection("CategoryList")}
{pocket name="foo"}
{/if}
? Thank you a lot
For example, that profile page you mentioned, if you use chrome browser and inspect the page, or just view source, you will see some very nice information about the page in the body id and class. You can even add your own logic in your template to produce more classes.
Examples
Nice read https://blog.vanillaforums.com/product/friday-theme-tip-statements-variables
also https://open.vanillaforums.com/discussion/22954/smarty-if-statement-variables-list
Hope this helps.
It helps a lot, yeah, I'll study it, Thank you