Results 1 to 6 of 6

Thread: Can't get Accordion Content script to work in Joomla 1.5

  1. #1
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can't get Accordion Content script to work in Joomla 1.5

    Can someone please help. I am trying to get the Accordion Content script to work in Joomla 1.5 but i'm having trouble.

    I tried the script in a standard html page and it works fine.

    With Joomla i can't get it to do anything. I copied the relevant <head> code into the <head> section of the template HTML and then use the class references in the actual Article HTML.

    Any suggestions anyone?

  2. #2
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    Please post a link to the page on your site that contains the problematic script so we can check it out.

  3. #3
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry about that...

    Script: DD Accordion Content
    http://www.dynamicdrive.com/dynamici...daccordion.htm

    Link to page that's having problems here

    I posted a forum topic in my RocketTheme Template Club and they suggested that I look at the page with Firebug which is awesome little tool. Firebug gave the following error: $("." + config.headerclass) has no properties (in line 85 of ddaccordion.js). Anybody have a clue?

  4. #4
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fixed

    OK I fixed it using this thread... http://www.dynamicdrive.com/forums/s...ight=accordion

  5. #5
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I was having issues with the same script and joomla 1.5 as well...

    Script: DD Accordion Content Script (v1.7)
    http://www.dynamicdrive.com/dynamici...daccordion.htm

    Here is the content page I am working with
    http://baybreezescuba.com/index.php?option=com_content&view=article&id=58&Itemid=69#

    One issue was the script placement and no reference to it.

    I added this to the head and it works fine now:

    <script type="text/javascript" src="/media/system/js/ddaccordion.js">

    <?php
    $document = &JFactory::getDocument();
    $document->addScript( '/media/system/js/ddaccordion.js' );
    ?>

    This page was very helpful:
    http://docs.joomla.org/Adding_JavaSc...ing_JavaScript

    I started to post for help but found the answer so I thought I would add this to the thread to hopefully save someone the two or three hours I spent working on it...
    Last edited by jscheuer1; 11-18-2013 at 01:35 PM. Reason: Format

  6. #6
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I only recommend writing your own if you have knowledge of HTML, CSS and understand about compressed and zipped files and extensions. One mistake can throw the whole website guide out of whack because all folders, files and the alike have to work together in the way that the version's core functionality is designed; otherwise, your layout and features will either look "funny" or simply won't work at all. There is, however, software programs available that will allow someone will little knowledge of these aspects to write their own templates.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •