PDA

View Full Version : Help with js file please


mceldon
17-Feb-2004, 01:12 PM
Hi,

Take a look at http://community.actinic.com/showthread.php?s=&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

cdicken
18-Feb-2004, 09:18 AM
I see you have gotten a little farther down the line than

http://community.actinic.com/showthread.php?s=&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="CUSTOMVAR:DESSERTLINK"><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.

mceldon
18-Feb-2004, 12:34 PM
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

mceldon
18-Feb-2004, 02:42 PM
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

mceldon
18-Feb-2004, 04:50 PM
Chris,

Nearly there with on e small problem -

http://www.cobhamfinewines.com/acatalog/Home_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

cdicken
19-Feb-2004, 08:30 AM
In the section link layout template, replace

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

with

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