Announcement

Collapse
No announcement yet.

section description + sub section list of links + standard section list

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

    section description + sub section list of links + standard section list

    I'm asking this question beacause I need to acomplise this before the end of the weekend and still haven't worked it out.

    How do I create sub sections as a list of text links aswell as show the sub section as normal?
    As part of a design I have come up with I want to be able to produce a section page with all its sub sections listed as standard but I also want the page to be able to output the same sub section list as a list of text links above the standard sub section list. I also want the list of text links to be broken into 3 columns.

    How do I include a description of the section within the section itself?
    The list of links I want to create should display above the standard sub sections within a description of the section itself. The description of the section coming from the section description field from within actinic.

    Is this possible? Can anyone help?
    Boxhedge New Media Design
    Design and development solutions for SME's.
    Tel: 0118 966 2786
    Examples of work can be found at http://www.boxhedge.com

    #2
    To get the description of the section within the section, open Act_Primary.html and save as a different name - perhaps Act_Prime_sectionDesc.html

    Select the new file as the layout file for a section and add a fragment. Ensure section list placement on the layout tab is set to Bottom.

    In the fragment, use copy/paste to get your section description, then use the code from this post suitably modified to get your columnar section list http://community.actinic.com/showthr...N+LIST+COLUMNS

    hth
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      Thanks for the help, All looks great but.....
      Just one more quick question. If I wanted to get actinic to do this automatically instead of having to create a fragment each time is there a way I could do this by creating a custom template page?

      Appreciate further help.
      Thanks again for help already,
      Bangers
      Boxhedge New Media Design
      Design and development solutions for SME's.
      Tel: 0118 966 2786
      Examples of work can be found at http://www.boxhedge.com

      Comment


        #4
        I'll be honest I can't get the javascript to output a list either.
        Am I missing something else that needs to be in the page?

        Am I right in thinking that it woul be okay to add the javascript within the fragment as long as I have wrapped it with !!< >!! ?

        Sorry to be a pain, help is really appreciated,
        regards
        Bangers
        Boxhedge New Media Design
        Design and development solutions for SME's.
        Tel: 0118 966 2786
        Examples of work can be found at http://www.boxhedge.com

        Comment


          #5
          OK I just made the changes directly in the template using NETQUOTEVAR:SECTIONTEXT to get the section description to show at the top of the page.

          I added the code from http://community.actinic.com/showpos...65&postcount=8 above the </HEAD> tag to get top level section lists in four columns

          then added
          Code:
          <tr valign="top" align="center"><td colspan="3" class="thinred">
          NETQUOTEVAR:SECTIONTEXT<br><br></TD><TR>
          <tr valign="top" align="left"><td colspan="3" class="thinred">
          <SCRIPT LANGUAGE = JavaScript>document.write(SectionList(section_tree))
          </SCRIPT>
          </td></tr>
          to my template in the main table.

          From some of the other scripts in the Advanced Guide, this could be adapted to give child sections in addition to the top level. Cannot find any way to restrict the output to one section though.
          Bill
          www.egyptianwonders.co.uk
          Text directoryWorldwide Actinic(TM) shops
          BC Ness Solutions Support services, custom software
          Registered Microsoft™ Partner (ISV)
          VoIP UK: 0131 208 0605
          Located: Alexandria, EGYPT

          Comment


            #6
            thanks for the help... in the process of giving it a go now.
            However it it a bit different to what I really need which is a list of text links to the sub sections contained only within the section the visitor is viewing.
            I'll see if I can do anything with it though,
            regards
            Bangers
            Boxhedge New Media Design
            Design and development solutions for SME's.
            Tel: 0118 966 2786
            Examples of work can be found at http://www.boxhedge.com

            Comment


              #7
              I found this post which might help you http://community.actinic.com/showthr...+level+section
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                Thanks for the help, think its going take a little time to work this out though,
                regards Bangers
                Boxhedge New Media Design
                Design and development solutions for SME's.
                Tel: 0118 966 2786
                Examples of work can be found at http://www.boxhedge.com

                Comment


                  #9
                  wjcampbe,
                  Just send you an email, the last thread works fine but I am struggling to get it to output to more than one collumn and same appplies to to script in
                  http://community.actinic.com/showpos...65&postcount=8

                  Any ideas?
                  Regards
                  Bangers
                  Boxhedge New Media Design
                  Design and development solutions for SME's.
                  Tel: 0118 966 2786
                  Examples of work can be found at http://www.boxhedge.com

                  Comment


                    #10
                    Have mailed you working code for the top level sections in three columns - still struggling to get the section list working.
                    Bill
                    www.egyptianwonders.co.uk
                    Text directoryWorldwide Actinic(TM) shops
                    BC Ness Solutions Support services, custom software
                    Registered Microsoft™ Partner (ISV)
                    VoIP UK: 0131 208 0605
                    Located: Alexandria, EGYPT

                    Comment


                      #11
                      Don't sweat it on my behalf wjcampbe it's my fault for coming up with a design that I hadn't worked out how to do.
                      I'll be honest though I think the sub section list is a really cool feature, thanks for sorting out so much for me,
                      Thanks for everything,
                      Bangers
                      Boxhedge New Media Design
                      Design and development solutions for SME's.
                      Tel: 0118 966 2786
                      Examples of work can be found at http://www.boxhedge.com

                      Comment


                        #12
                        Finally cracked it
                        Here is the working code for the sub-sections

                        First off, the YahooSections script at the top of the page

                        Code:
                        <!--@act NETQUOTEVAR:SECTIONTREE_RAW -->
                        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
                        <!--
                        function YahooSections(ar)
                        {
                        var col = 1;
                        var strIDs = '<table width="100%"><tr><td valign=top width="33%">';
                        for (var i=1;i<=ar.length;i++)
                          {
                          if (ar[i].sURL != null)
                            {
                            strIDs += '<a href="' + ar[i].sURL + '"><span 
                        class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + 
                        '</font></b></span></a><br>';
                              {
                              if (ar[i].pChild)
                                {
                                for (var j=1;j<=ar[i].pChild.length;j++)
                                  {
                                  if (ar[i].pChild[j].sURL != null)
                                    {
                                    strIDs += '&nbsp;&nbsp;<a href="' + ar[i].pChild[j].sURL + 
                        '"><span class="actxxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + 
                        ar[i].pChild[j].sName + '</font></span></a><br>';
                                    }
                                  }
                                }
                              }
                            if ( col != 3 ) {
                        strIDs += '</td><td valign=top width="33%">';
                        col++;
                        } else {
                        strIDs += '</td></tr><tr><td valign=top width="33%">';
                        col = 1;
                        }
                            }
                          }
                        return strIDs + '</td></tr></table> '
                        }
                        //-->
                        </SCRIPT>
                        Then just above the </HEAD> tag
                        Code:
                        <SCRIPT LANGUAGE="JavaScript" SRC="Act_section_tree.js" 
                        TYPE="text/javascript"><!-- 
                        // -->
                        </SCRIPT>
                        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
                        <!--
                        function SubSectionList(ar)
                        {
                        var col = 1;
                        var i = 1;
                        var strIDs = '<table width="100%" border="0" cellspacing="0" 
                        cellpadding="0"><tr><td><b>In this Section:</b></td></tr><tr><td 
                        valign="top" width="33%">';
                        
                        if (ar[i].sURL !=null && ar[i].pChild){
                         for (var j=1;j<=ar[i].pChild.length;j++){
                         strIDs += '<a href="' + ar[i].pChild[j].sURL + '">' + ar[i].pChild[j].sName 
                        + '</a>';
                         if ( col != 3 ) {
                         strIDs += '</td><td valign=top width="33%">';
                         col++;
                         } else {
                         strIDs += '</td></tr><tr><td valign=top width="33%">';
                         col = 1;
                         }
                         }
                         }
                        else {
                        strIDs += 'No sub-sections to this page. '
                        }
                         if ( col != 3 ) {
                         strIDs += '</td><td valign=top width="33%">';
                         col++;
                         } else {
                         strIDs += '</td></tr><tr><td valign=top width="33%">';
                         col = 1;
                         }
                        return strIDs + '</td></tr></table>'
                        }
                        //-->
                        </SCRIPT>
                        and finally - where it is to be printed
                        Code:
                        <tr valign="top" align="left"><td colspan="3">
                        <script language=Javascript1.1>document.write(SubSectionList (section_tree))
                        </script></td></tr>
                        Obviously, this last bit is designed to be inside an existing table.

                        Hope this helps
                        Last edited by wjcampbe; 02-Oct-2005, 07:33 AM. Reason: add semi-colons to end of var declarations
                        Bill
                        www.egyptianwonders.co.uk
                        Text directoryWorldwide Actinic(TM) shops
                        BC Ness Solutions Support services, custom software
                        Registered Microsoft™ Partner (ISV)
                        VoIP UK: 0131 208 0605
                        Located: Alexandria, EGYPT

                        Comment


                          #13
                          Do you ever sleep!
                          For some reason I can't get the script you have created to output any links.

                          When I saw nothing the first time (following your instructions) I tried a few different compo's like removing the yahoo script (what does this do for yahoo/ what is it for I'm interested to know?) or removing the html around the script for the body of the document but I either got an error message or saw nothing.

                          so for me, the script you've created doesn't create an error but doesn't ouput any links either.

                          Is there something else I should try?
                          regards
                          Bangers
                          Boxhedge New Media Design
                          Design and development solutions for SME's.
                          Tel: 0118 966 2786
                          Examples of work can be found at http://www.boxhedge.com

                          Comment


                            #14
                            Hi,

                            The YahooSections script builds Act_section_tree.js which is parsed by the second script to get the section list.

                            Testing further this morning, I found the script as posted picks up the first section only (not surprising when I assigned the value 1 to var i.

                            For each section I have had to create a separate copy of Act_Primary.html with var i incremented to correspond to the section position in my Actinic section tree.

                            The working code is online at http://www.egyptianwonders.co.uk/aca...e-bottles.html
                            Bill
                            www.egyptianwonders.co.uk
                            Text directoryWorldwide Actinic(TM) shops
                            BC Ness Solutions Support services, custom software
                            Registered Microsoft™ Partner (ISV)
                            VoIP UK: 0131 208 0605
                            Located: Alexandria, EGYPT

                            Comment


                              #15
                              Thanks again wjcampbe.
                              In the version I have working on my site when it came to adding customvars I only added the sectionname not subsection as I only want to use this on a section page to show the sub sections.
                              What I see on your site is perfect but do I need to do anything else to get it working on mine?

                              For each section I have had to create a separate copy of Act_Primary.html with var i incremented to correspond to the section position in my Actinic section tree.
                              So if I have 100 sections I need to make 100 different Act_Primary.html. Have I got that right? Also what would I change in each new template
                              regards
                              bangers
                              Boxhedge New Media Design
                              Design and development solutions for SME's.
                              Tel: 0118 966 2786
                              Examples of work can be found at http://www.boxhedge.com

                              Comment

                              Working...
                              X