Announcement

Collapse
No announcement yet.

How do I remove sub-sections from the section list? I only want to show the top ...

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

    How do I remove sub-sections from the section list? I only want to show the top ...

    How do I remove sub-sections from the section list? I only want to show the top level sections.

    The themes that display the sub-sections use javascript to generate the code. The easiest way to stop the sub-sections from showing is to stop using the javascript and replace this code with one variable to only display the top level sections. To do this:

    * on the 'Design' tab, click on your section list on the preview pane

    * on the layout code that displays in the 'layout code' window, look for something like:

    HTML Code:
     <script language="javascript" type="text/javascript">
                      document.write(YahooSections(section_tree))
           </script>
    * replace this code with:

    HTML Code:
    <actinic:variable name="TopLevelSectionList" />
    * click 'Apply' and only the top level sections should be displayed in the preview

    * update your site.
Working...
X