Gallery broken by Spry

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
vicpug
Forum Members
Forum Members
Posts: 22
Joined: Mon Jul 12, 2010 1:58 pm

Gallery broken by Spry

Post by vicpug »

Hi, I am trying to integrate Gallery with a Tabbed panel using Spry.  The Tabs work OK, but there is mixed success with Gallery templates depending in which content blocks they are defined.

Code: Select all

<div id="content">
{content}
       <div class="TabbedPanels" id="gallerytab">
    <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab">Tab 1</li>
        <li class="TabbedPanelsTab">Tab 2</li>
        <li class="TabbedPanelsTab">Tab 3</li>
    </ul>
    <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">{content block="firstTab"}</div>
        <div class="TabbedPanelsContent">{content block="secondTab"}</div>
        <div class="TabbedPanelsContent">{content block="thirdTab"}</div>
        </div>
        {literal}
       <__script__ language="JavaScript" type="text/javascript">
       var gallerytab = new Spry.Widget.TabbedPanels('gallerytab', { defaultTab: 0 });
       </__script>
       {/literal}
    </div>
{content block="outside"}
If the Gallery definition is in the main content block or the the outside content block - all is OK. If I define a Gallery in the inside blocks - there are problems. Slimbox and Lytebox work ok whereas Cmotion, AE and others do not. I cannot see it being a stylesheet issue - maybe its a javascript conflict. I am hoping for a simple oversight on my behalf.    cheers and thanks to any help.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery broken by Spry

Post by Jos »

does this spry tabbed panel thing use jQuery itself? Maybe you want to look for additional calls to the jQuery library in your html source code and delete them all but the first one
Last edited by Jos on Sun Sep 19, 2010 10:26 pm, edited 1 time in total.
vicpug
Forum Members
Forum Members
Posts: 22
Joined: Mon Jul 12, 2010 1:58 pm

Re: Gallery broken by Spry

Post by vicpug »

thanks,  Spry uses

Code: Select all

<__script__ language="JavaScript" type="text/javascript" src="lib/SpryTabbedPanels.js"></__script>
  <__script__ language="JavaScript" type="text/javascript">
    var tp1 = new Spry.Widget.TabbedPanels('gallerytab', { defaultTab: 0 });
       </__script>
Still looking. thanks
Post Reply

Return to “Modules/Add-Ons”