Kryptronic Software Support Forum

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.

#1 01-15-2015 16:10:16

timberguy
Member
Registered: 01-14-2008
Posts: 142

Enable fancybox capabilitie on all pages

I understand you can add <?php $this->globals('core.load_fancybox',1); ?>  to a page in oder to enable fancybox, but doing this it siables the wysiwyg editor.  Is there a way to simply make the code active for all html pages within the skin template so the php code does not disable the editor?

Offline

 

#2 01-16-2015 09:02:43

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Enable fancybox capabilitie on all pages

At the top of your active skin's skin.php file, right before the line:

Code:

<?php $skinfunc->xnamespace('core','jslib'); ?>

Add:

Code:

if (($this->globals('core.app') == 'cms') && ($this->globals('core.namespace') == 'display')) {$this->globals('core.load_fancybox',1);}

Nick Hendler

Offline

 

#3 01-18-2015 19:30:27

timberguy
Member
Registered: 01-14-2008
Posts: 142

Re: Enable fancybox capabilitie on all pages

Perfect! Thank you.

Offline

 

Board footer