Yes, I created the structures for both stHighlight & stLink and placed them
above the cfa_tree. They didn't have an effect on the tree UNTIL I added the
following classes to my stylesheet:
a.xcfatree1link:link { text-decoration: none;
color: #000000;
font-weight: bold;
font-size: 9px;
line-height: 11px;
font-family: verdana,
sans-serif;
}
a.xcfatree1link:visited { text-decoration: none;
color: #000000;
font-weight: bold;
font-size: 9px;
line-height: 11px;
font-family: verdana,
sans-serif;
}
a.xcfatree1link:hover { text-decoration: none;
color: #0000CC;
font-weight: bold;
font-size: 9px;
line-height: 11px;
font-family: verdana,
sans-serif;
}
..xcfatree1normal { text-decoration: none;
color: #000000;
font-weight: bold;
font-size: 9px;
line-height: 11px;
font-family: verdana,
sans-serif;
}
..xcfatree1link { text-decoration: none;
color: #000000;
font-weight: bold;
font-size: 9px;
line-height: 11px;
font-family: verdana,
sans-serif;
}
If I try to use the classes without the structures or the sturctures without
the classes, nothing works. But if you use both (and it doesn't matter what
the structures contain, just so long as the exist), then you will be able to
control your tree styles.
Also, if you have more than one tree on any of your pages, you'll need to
add more styles to your .css file: .xcfatree2link, .xcfatree2normal, etc.
for every tree on the page. I have a site map that included each nav tree
from the site so my .css file has the above styles replicated 9 times. It's
a hassle but it works.
-Kate
-----Original Message-----
From: Sean Faulkner [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Tuesday, March 20, 2001 11:33 AM
To: Spectra-Talk
Subject: RE: Highlighting link in cfa_tree?
Did you try any of the attributes? Like the StLinkStyle or StHighlightStyle?
I'm fooling around with them, trying to get them to read a style from the
stylesheet I'm using..
-----Original Message-----
From: Kate De Jong [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Tuesday, March 20, 2001 11:36 AM
To: Spectra-Talk
Subject: RE: Highlighting link in cfa_tree?
Yes, it was me who asked if there was a solution. But I didn't get a
response, so I hacked it again. I had to put an if/else set of tags around
the treeitem tag, like this:
(We have something called a "BasicPageTitle" unique to every object no
matter which of the 20 templates or so is used to display the object)
<cfif parameterExists(BasicPageTitle) AND (#BasicPageTitle['en']# EQ
#TreeLabel.ProductOverview['en']#>
<cfa_treeitem label="<font
color=blue>#TreeLabel.ProductOverview[mylanguage]#</font>"
value="lsjlsjflsj.cfm"/>
<cfelse>
<cfa_treeitem label="#TreeLabel.ProductOverview[mylanguage]#"
value="lsjlsjflsj.cfm"/>
</cfif>
This worked in about 90% of the situations, but I ended up hardcoding a few
of the EQ statements and using CONTAINS instead of EQ in some of them.
Hope this helps. It seems like there should be a better way, but when the
deadline is there, hacks do the job. I'm just hoping it won't take to long
to extract myself from the hack later on!
Kate
-----Original Message-----
From: Sean Faulkner [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Tuesday, March 20, 2001 7:19 AM
To: Spectra-Talk
Subject: Highlighting link in cfa_tree?
Hi all:
I saw a posting on this a little while ago and I was wondering if there was
a solution.. has anyone figured out how to 'highlight' (as in, make bold, or
whatever) whichever page you are on in your cfa_tree navigation algorithim?
I've been assigned to do this and it's been programmed dynamically with
several loops, and it's multiligual.. any ideas????
Thanks in adv.
Sean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.