Announcement

Collapse
No announcement yet.

Top Level Sections

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

    Top Level Sections

    I have altered Act_SectionLineSmallText.html exactly how i want it, which is a small text link seperated by a <br> like soo...

    -------------------------------------------------------------------------
    <!-- Insert HTML for the beginning of a section title -->
    <!-- NETQUOTEVAR:SECTIONIMAGE NETQUOTEVAR:SECTIONTEXT -->
    <A HREF="NETQUOTEVAR:SECTIONLINK"><span class="ppNav">NETQUOTEVAR:SECTIONNAME</span></A><br>
    NETQUOTEVAR:NEXT
    <!-- Insert HTML for the end of a section title -->
    -------------------------------------------------------------------------

    Ive checked around the template that calls this template file and all looks ok untill i preview it when it suddenly adds tables around each section link. This is what it outputs...

    -------------------------------------------------------------------------
    <TABLE width="100%"><TR><TD WIDTH="100%" valign="top">
    <A HREF="Backup_Drives.html"><span class="ppNav">Backup Drives</span></A> </TD>
    </TR></TABLE>
    -------------------------------------------------------------------------


    Somewhere, and i have almost lost the will to live from searching for it. But there is somthing puting these tables around each link.

    If anyone knows which template file i need to edit to get rid, please let me know. Thanks in advance!

    #2
    To enable multiple columns of sections in a single row, you have the ability within Design | Options and also within each Sections settings to assign how the first section row of sections are shown (i.e. 1,2,3 etc per first row), and then subsequent rows based on how many per row after the first row is populated...

    So, Actinic is inserting the table around the information at site generation time based on the settings of 1,2,3 and so on at the Design and Section set options...

    Not entirely sure if it is possible to switch it off completely so that no table is ever generated though - sorry..

    Comment


      #3
      The section code that lays out both top-level section lists and sub-section lists in to rows and columns can be found in lines 9,10,11 and 12 in 'Design | Text | Website | HTML'

      You can remove the code from here if you like - be prepared for this to affect all section lists in the software though.

      Comment


        #4
        Thanks for the response, however, this appears a bit daft to me....

        I could modify the HTML code as you suggested but then my product on the main product pages would not be displayed correctly. If you look at the attatched image you can see the top level sections layout on the left of my page. I need to keep the HTML as it is or i would not be able to layout the main product page how the customer needs it, yet it seems if i dont, then i would have to make do with the nav links on the left looking as they are. As you can see it looks daft as there is soo much space between them due to the tables generated and there are lots of top level sections so it makes the page extremely long to scroll down.

        Is there anyway around this at all? It would make sense to me to have the top level sections generated seperatly or from a different template than that of an extra top level placed on the wbsite (if that makes sense)
        Attached Files

        Comment


          #5
          Sorry, but I am a little confused, so please forgive....

          The Section templates provide the layout for the central areas of the main body. So, this is what we have been refering to...

          Are you talking about a menu on the left hand side of the site, which is being populated from the same section menus?

          If so, then you might want to look at using the java scripts provided in the advanced user guide to maintain that left hand menu of top level sections (which I am remotely guessing maybe you already are - in which case the menu on the left would not be affected by stuff you change in the section template layouts)...

          If got this completely wrong, then apols, but seems like crossed purposes with what you are after and what you are explaining.

          Do you have a site which this is loaded on to look at and see to better advise??

          Comment


            #6
            No no, sorry its proberbly my fault for not explaining correctly, as yes i was refering to the navigation links on the left of my page like shown in the image i uploaded. However i assumed that you guys understood me and i also assumed that modifying the links on the main product page would also modify the nav links on the left of the page (the image i showed).

            I will take a look at the advanced guide and come to think of it, i do remember seeing somthing like that in there.

            Thanks again for the help

            Comment


              #7
              Thanks again, i checked the advanced guide and there it was, so with some modifications i came up with the following:

              So if anyone else had a similar problem (if you understood my endless ranting), here is the solution:

              <SCRIPT LANGUAGE="JavaScript">
              <!--
              function NavList(strItem)
              {
              var strString = '';
              {
              for (var i = 1; i <= strItem.length; i++)
              {
              strString += '<a href=' + strItem[i].sURL + '><span class="ppNav">'+ strItem[i].sName + '</span></a><br>';
              }
              }
              return strString
              }
              -->
              </SCRIPT>



              Simply adding <script language=Javascript1.2>document.write(NavList(sections))</script> where the list should appear.

              Thanks again

              Comment

              Working...
              X