Announcement

Collapse
No announcement yet.

Section list into fragment

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

    Section list into fragment

    I've just been asked by a fellow Actinic user if its possible to put the Section List (not with sub sections), into a fragment on the homepage.

    I mean the list as a complete `feed` as opposed to making up individual text and links etc. I'd normally have a look at this but I'm mega busy today so hopefully one of you nice forum peeps will answer this for me.

    Thanks for any help.
    Football Heaven

    For all kinds of football souvenirs and memorabilia.

    #2
    George how easy this is depends on the homepage.

    Is it a brouchure homepage or the catalog homepage? I dont think NQV will work in brouchure but Chris Diken did post an altenative javascript that only showed toplevel sections a couple of weeks back. This would work in both cases.

    Just remeber to embed the HTML into the fragment
    Owner of a broken heart

    Comment


      #3
      Brochure homepage, in one of the clean lay-out's at the moment, although I'm promoting the new Smart theme for you and trying to get them to change.
      Football Heaven

      For all kinds of football souvenirs and memorabilia.

      Comment


        #4
        George

        Put the following code into the <head> part of your brochure overall layout template (underneath the line that has got 'actiniccore.js' in it)
        Code:
        <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->
        
        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
        <!--
        function SectionList(ar)
        	{
        	var strIDs = '<table border=0 width=100%>'
          	for (var i=1;i<=ar.length;i++)
          		{
        		if (ar[i].sURL !=null)
        			{
        			strIDs += '<tr><td><a href="' + ar[i].sURL + '"><span class="actxxsmall">' + ar[i].sName + '</span></a></td></tr>'
        			}
          		}
        	strIDs+='</table>'
          	return strIDs
          	}
        //-->
        </SCRIPT>
        and then put the following code within a 'Text Only' fragment in Actinic:
        Code:
        !!<
        <script language=Javascript1.1>document.write(SectionList(sections))</script>
        >!!

        Comment


          #5
          Thanks Boss.
          Football Heaven

          For all kinds of football souvenirs and memorabilia.

          Comment

          Working...
          X