You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
We have a custom YouTube popup on our website but the code only loads on our category pages:
if ($namespace == 'catshow') {
How can I change this to also load on our splash (home) page?
Thanks!
Offline
geraldz wrote:
We have a custom YouTube popup on our website but the code only loads on our category pages:
if ($namespace == 'catshow') {
How can I change this to also load on our splash (home) page?
Thanks!
You would do
if ($namespace == 'catshow' || ($app == 'display' && $ref == 'splash')) {
Offline
That doesn't actually work
Last edited by geraldz (08-04-2015 14:10:17)
Offline
This seems to work:
if ($this->globals('core.app') == 'cms' && $this->globals('core.namespace') == 'display' && ($this->globals('core.ref') == 'splash' || $this->globals('core.ref') == '')) {
Offline