Announcement

Collapse
No announcement yet.

Help with js file please

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

    Help with js file please

    Hi,

    Take a look at http://community.actinic.com/showthr...&threadid=5592 regarding the javascript on page 48 of the designing with actinic manual.

    Can this Javascript be amended so that it will NOT display the top level sections so it would be:
    SUBSECTION 1
    SUB_SUB section 1,SUB_SUB section 2.

    I'm stuck in a rut here I'm trying to create a layout like this - http://www.cobhamfinewines.com/layout.htm , the top level would be countries.

    Please help I'm close to giving up.

    Mac
    Stephen J McEldon

    #2
    I see you have gotten a little farther down the line than

    http://community.actinic.com/showthr...&threadid=5768

    OK.

    Customising this javascript is a little tricky but not impossible. The trouble is, I don't have the skill to create a list that looks like the image you provided.

    I would take a different approach to the one you describe. I would add sub-sub-section links into the section link layout template for the sub-sections.

    I would create custom properties within 'Advanced | Custom Properties' called things like 'RedLink', 'WhiteLink' etc. Then create a section link layout template that includes code similar to the following:

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr align="center">
    <td><a href="CUSTOMVAR:REDLINK"><font color="#990000">Red Wine</font></a></td>
    <td><a href="CUSTOMVAR:ROSELINK"><font color="#FF00FF">Rose Wine</font></a></td>
    <td><a href="CUSTOMVAR:WHITELINK"><font color="#006600">White Wine</font></a></td>
    <td><a href="CUSTOMVAR:SPARKLINGLINK"><font color="#FF9900">Sparkling Wine</font></a></td>
    <td><a href="CUSTOMVARESSERTLINK"><font color="#669900">Dessert Wine</font></a></td>
    </tr>
    </table>

    You can then manually include the links for the sub-sub-sections within the 'Properties' tab of each sub-section.

    A bit clunky - but definitely achievable.

    Comment


      #3
      Great,

      Thanks for your comprehensive reply - I'll have to go try this out. If it's OK I;ll get back to you with any prblems !

      Thanks again - great forum.

      Mac
      Stephen J McEldon

      Comment


        #4
        You beauty ! - I see what you're saying, I'wasn't looking forward to messing with that javascript but this way is even better.

        Thanks a bunch.

        Mac
        Stephen J McEldon

        Comment


          #5
          Close - Nearly There !

          Chris,

          Nearly there with on e small problem -

          http://www.cobhamfinewines.com/acata...e_Italy_1.html

          As you can see your solution works but I need to stop users linking directly to the section 'Trivento' for example - I want to force them straight to the red/white/rose etc sub sections - any idea how i might accomplish this ??

          Thanks for your continued help.

          mac
          Stephen J McEldon

          Comment


            #6
            In the section link layout template, replace

            <A HREF="NETQUOTEVAR:SECTIONLINK"><B>NETQUOTEVAR:SECTIONNAME</B></A>

            with

            <B>NETQUOTEVAR:SECTIONNAME</B><!-- NETQUOTEVAR:SECTIONLINK -->

            Comment

            Working...
            X