Announcement

Collapse
No announcement yet.

How do I use YahooSections on non actinic pages?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I use YahooSections on non actinic pages?

    Can anyone tell me how to use the YahooSections feature on non actinic pages?

    #2
    You need to include the javascript files that actinic uses to display the section tree. Add this into the <head> tag of your page:

    Code:
    <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></script>
    Then you need to copy the YahooSections function into the page also, between another set of <script>...</script> tags. Once that's done, you can use the normal way to write the sections to the page:

    Code:
    <script type="text/javascript">
    document.write(YahooSections(section_tree))
    </script>
    If your page is outside the acatalog directory, you'll have to edit the 'SRC' properties in the first block of code to point to the files within the acatalog directory.
    Last edited by Kermy; 14-Oct-2005, 04:52 PM. Reason: addition
    www.gbradley.co.uk
    Web Development, Actinic Patches, Scripts & more

    Comment


      #3
      Hi Kermy

      Thanks for that, I had tried that but I have been uploading to a test site while I have been working on some changes but the section tree link was pointing to the old site.

      Cheers
      Mark

      Comment

      Working...
      X