Announcement

Collapse
No announcement yet.

Toplevelsectionstop

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

    Toplevelsectionstop

    Hi,

    I am new to Actinic and I have a problem that has been drving me mad for nearly a week.

    I want to put the Product Categories list on the opening front page, but it does not appear to want to let me. I have edited the template to include NETQUOTEVAR:TOPLEVELSECTIONSTOP, but that is exactly what gets displayed as a piece of text, instead of the actual list?

    Can anyone help, or is this not a possible function?

    #2
    I'm new to Actinic too and I wanted to do the same thing. Delete the brochure pages and make your catalog page the top page. You will have to change a misc. design setting to make that page index.html. After that, it is exactly what I wanted to do. I also edited the template to include the information I wanted.

    I asked the same thing in the V6 support group titled "Do I need a brochure page?".

    Bob Ladden
    Bob Ladden

    Comment


      #3
      I dont think your page will work outside the /acatalog/ folder unless you use some scripting rather than NETQUOTEVARS.

      The advanced user guide which is a download on the actinic site explains how to use store functionality outside the store itself - this includes the search and your section links.

      Hope this helps.

      If not I guess you could redirect your home page to acatalog/index.html

      kat

      Comment


        #4
        Just to clarify - NETQUOTEVAR:TOPLEVELSECTIONSTOP does not work on your brochure front page. However, it is possible to add your own code (using JavaScript) in to simulate this variable.

        To do this, you need to first set up the JavaScript within your store. To do this...

        Paste the following code just before where it says </HEAD> in your Overall Layout template (Act_Primary.html)

        Code:
        <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
        
        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
        <!--
        function SectionList(ar)
        {
        var strIDs = '<table border=0 width=95% cols=2>';
        for (var i=1;i<=ar.length;i++)
        {
        if (ar[i].sURL !=null)
        {
        strIDs += '<tr><td colspan=2><a href="' + ar[i].sURL + '"><span class="actxsmall">' + ar[i].sName + '</span></a></td></tr>';
        }
        }
        strIDs += '</table>' 
        return strIDs
        }
        //-->
        </SCRIPT>
        And then insert the following code in the main body of the page where you want the image list to appear (you could replace NETQUOTEVAR:TOPLEVELSECTIONSTOP)

        Code:
        <script language=Javascript1.1>document.write(SectionList(section_tree))
        </script>
        If a section list still appears in your store, then it is working!

        Then repeat the process in your Act_BrochurePrimary.html file, but instead of using

        <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->

        instead use

        Code:
        <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" TYPE="text/javascript"></SCRIPT>
        It should work fine once you upload your store.

        Comment

        Working...
        X