I'd try and cache the menu, and use to URL var to specify a different
stylesheet for the colors.
-Adam
On Thu, 24 Feb 2005 12:45:54 -0500, CFDEV [EMAIL PROTECTED] wrote:
Hi all,
I have an include for a dynamic side menu and there is a lot of data in the
menus. There is 3 level of menus and
CFDEV wrote:
I have an include for a dynamic side menu and there is a lot of data in the
menus. There is 3 level of menus and hte guy who programmed it made loops
inside of loops with different queries. I'm looking for a way to optimize
this since it's taking 1000 ms to load.
I looked
Well the color is to highlight the menu for which page we are in at the
moment and this is determined by a url variable...
Pat
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: February 24, 2005 13:07
To: CF-Talk
Subject: Re: Trying to optimize some code
CFDEV
Any ideas?
I use only one query, one loop on the query with grouping, and a
recursive Custom Tag.
Pretty fast indeed, but not really trivial.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any
CFDEV wrote:
Well the color is to highlight the menu for which page we are in at the
moment and this is determined by a url variable...
That is no problem. Consider the folowing menu:
cfoutput
style type=text/css
ul.menu li.#url.page# {background-color: navy;}
/style
/cfoutput
ul id=menu
5 matches
Mail list logo