From: [EMAIL PROTECTED] on behalf of Michael J. Sammut
Sent: Wed 10/27/2004 2:01 PM
To: FarCry Developers
Subject: Spam:[farcry-dev] Brain Jar Header menu tag
I do not know if this will be helpful to anyone, but some time
ago we
formatted the brain jar tag into a really simple custom tag.
This is a
really bare bones menu tag, but does the trick and cleans up real
well
if you tweak the CSS.
The CF code was done by Chris Kent and then
a few updates here and there
to make it a tag by me. Any tweaks or
thoughts are welcome.
Again a thanks to Chris my Jedi
Friend!!!!
[Place in the header of template to whatever is
your path to the css and js]
<link rel="stylesheet" type="text/css"
href=""
media="screen" />
<SCRIPT
type="text/_javascript_"
src=""></SCRIPT>
[Place _bjmenu.cfm in a
folder of your choice and call in the tag
wherever you want the nav to
show]
<cfmodule
template="/farcry/#application.applicationname#/webskin/includes/_bjmenu.cfm"
root="#application.navid.home#"
showHome="no"
delimiter=" | ">
[Two recommendations.
1) Do not wrap a cfoutput around the tag 2) If
your tree is big,
cache the nav.]
--
Regards,
Michael J.
Sammut
________________________________________________
F O U R
E Y E S P R O D U C T I O N S
think | plan | create :: web site design
& development :: NYC
E. [EMAIL PROTECTED] | T: 718.254.9557 ext. 101 |
F: 718.254.0399
W. http://www.foureyes.com
From: [EMAIL PROTECTED] on behalf of Brant Winter
Sent: Sun 3/13/2005 8:01 PM
To: FarCry Developers
Subject: Spam:[farcry-dev] Re: Building Menu
Claudio - I am in the process of getting these drop down menus
working. I
have some code that has been posted on these lists, and I sort of
have them
half working. I will post my findings here for you when I am done.
Should be
in the next few days. There is a distinct lack of examples about
for these
very well sort after menus for farcry. I have been following the
lists for
almost 12 months and after repeated questions about the drop down
menus for
farcry, I still see no examples listed anywhere on the internet
!
Regards,
Brant Winter
-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of claudio
rosemffet
Sent: Monday, 14 March 2005 9:58 AM
To:
FarCry Developers
Subject: [farcry-dev] Re: Building Menu
any
suggestion ..??
please comment your experience here, because I'm a little
confused about
it.
thanks..!
> The template with FarCry only has
the top level menu.
>
> You need to delve into the Cold Fusion if
you want a drop-down menu
system.
>
> You also need to decide
which (out of the many, many, many
> _javascript_/dhtml/css) menu system you
want to use.
>
> A few people on this list have implemented some
before. You could
> have a look at the archives and see what people
have suggested.
>
> Regards,
> Gary
Menzel
----------------------------------------------------------------
The
information transmitted is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact the
sender and delete the material from any computer. It is the responsibility of
the recipient to ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its systems or data.
Please carry out such virus and other checks, as you consider appropriate. To
the fullest extent allowed by law, no responsibility is accepted by Haematology
& Oncology Clinics of Australasia for any virus damage caused by this
message.
---
You are currently subscribed to farcry-dev as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
div.menuBar,
div.menuBar a.menuButton,
div.menu,
div.menu a.menuItem {
font-family: Arial, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: bold;
color: #3E0000;
}
div.menuBar {
border: 2px solid #3E0000;
text-align: center;
}
div.menuBar a.menuButton {
/*background-color: transparent;*/
/*border: 1px solid #F1EDE5;*/
color: #3E0000;
cursor: hand;
left: 0px;
/*margin: 1px;*/
padding: 2px 7px 2px 7px;
position: relative;
text-decoration: none;
top: 0px;
z-index: 100;
}
.MenuHover:hover {
background: #7B2C18;
color:#ffffff;
}
div.menuBar a.menuButton:hover {
background-color: #000000;
/*border: 1px outset #F1EDE5;
color: #000000;*/
}
div.menuBar a.menuButtonActive,
div.menuBar a.menuButtonActive:hover {
background-color: #000000;
/*border: 1px solid #F1EDE5;*/
color: #305778;
/*left: 1px;
top: 1px;*/
}
div.menu {
background-color: #FFFFFF;
border: 1px solid #7B2C18;
left: 0px;
padding: 0px 1px 1px 0px;
position: absolute;
top: 0px;
visibility: hidden;
z-index: 101;
width: 150px;/*moz/ns/fb*/
}
div.menu a.menuItem {
color: #750000;
cursor: hand;
display: block;
padding: 3px 1em;
text-decoration: none;
white-space: nowrap;
text-align: left;
}
div.menu a.menuItem:hover, div.menu a.menuItemHighlight {
background-color: #F1EDE5;
color: #005D7E;
}
div.menu a.menuItem span.menuItemText {
text-align: left;
}
div.menu a.menuItem span.menuItemArrow {
margin-right: -.75em;
}
div.menu div.menuItemSep {
border: 1px inset #F1EDE5;
margin: 4px 2px;
}
<cfsetting enablecfoutputonly="yes">
<cfparam name="attributes.root" default="#application.navid.home#"> <!--- where
to start from --->
<cfparam name="attributes.showHome" default="no"> <!--- show home in the menu?
--->
<cfparam name="attributes.rootName" default="Home"> <!--- what is home called?
--->
<cfparam name="attributes.delimiter" default="|"> <!--- what do you want to
seperate the nav elements with? --->
<!--- lets makes the URLs friendly --->
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
<!--- Get First Level Menu Items for menu bar --->
<cfscript>
// get navigation elements to root and test for approved
o = createObject("component", "#application.packagepath#.farcry.tree");
dbColumn="status,externallink";
navFilter=arrayNew(1);
navfilter[1]="status IN (#listQualify(request.mode.lvalidstatus, "'")#)
AND status = 'approved'";
qNav = o.getDescendants(objectid=attributes.root, depth=1,
afilter=navFilter, lcolumns=dbColumn);
</cfscript>
<!--- Container Div for brainjar menu --->
<!--- Create Menu Bar Buttons --->
<cfif attributes.showHome EQ "yes">
<cfoutput><a class="menuButton"
href="/">#attributes.rootName#</a>#attributes.delimiter#</cfoutput>
</cfif>
<cfloop query="qNav">
<cfoutput><a href="</cfoutput><skin:buildlink objectid="#qNav.objectid#"
externallink="#qNav.externallink#" urlonly="true" /><cfoutput>"
onmouseover="buttonMouseover(event,
'#URLEncodedFormat(qNav.objectid)#Menu');">#trim(qNav.objectName)#</a><cfif
qNav.currentRow LT qNav.recordCount>#attributes.delimiter#</cfif></cfoutput>
</cfloop>
<!--- Parse all nodes in tree --->
<cfscript>
// get navigation elements to root and test for approved
o = createObject("component", "#application.packagepath#.farcry.tree");
dbColumn="status,externallink";
navFilter=arrayNew(1);
navfilter[1]="status IN (#listQualify(request.mode.lvalidstatus, "'")#)
AND status = 'approved'";
qNav = o.getDescendants(objectid=attributes.root, afilter=navFilter,
lcolumns=dbColumn);
</cfscript>
<cfloop query="qnav">
<!--- Get children if any --->
<cfscript>
// get navigation elements to root and test for approved
o = createObject("component", "#application.packagepath#.farcry.tree");
dbColumn="status,externallink";
navFilter=arrayNew(1);
navfilter[1]="status IN (#listQualify(request.mode.lvalidstatus, "'")#)
AND status = 'approved'";
qNav2 = o.getDescendants(objectid=qNav.objectID, depth=1,
afilter=navFilter, lcolumns=dbColumn);
</cfscript>
<!--- Create a sub menu --->
<cfif qNav2.recordcount gt 0>
<cfoutput><div id="#URLEncodedFormat(qNav.objectid)#Menu"
class="menu" onmouseover="menuMouseover(event)"></cfoutput>
<!--- Create sub menu children --->
<cfloop query="qNav2">
<cfscript>
// get navigation elements to root and
test for approved
o = createObject("component",
"#application.packagepath#.farcry.tree");
dbColumn="status,externallink";
navFilter=arrayNew(1);
navfilter[1]="status IN
(#listQualify(request.mode.lvalidstatus, "'")#) AND status = 'approved'";
qNav3 =
o.getDescendants(objectid=qNav2.objectID, depth=1, afilter=navFilter,
lcolumns=dbColumn);
</cfscript>
<!--- Is there another submenu below this link? --->
<cfif qNav3.recordcount gt 0>
<cfoutput><div style="width:100%"
class="menuItem"><a style="width:100%;" class="menuItem"
href="</cfoutput><skin:buildlink objectid="#qNav2.objectid#"
externallink="#qNav2.externallink#" urlonly="true" /><cfoutput>"
onmouseover="menuItemMouseover(event,
'#URLEncodedFormat(qNav2.objectid)#Menu');"><span
class="menuItemText">#trim(qNav2.objectName)#</span><span
class="menuItemArrow">&##9654;</span></a></div></cfoutput>
<cfelse>
<cfoutput><div style="width:100%"
class="menuItem"><a style="width:100%;" class="menuItem"
href="</cfoutput><skin:buildlink objectid="#qNav2.objectid#"
externallink="#qNav2.externallink#" urlonly="true"
/><cfoutput>">#trim(qNav2.objectName)#</a></div></cfoutput>
</cfif>
</cfloop>
<cfoutput></div></cfoutput>
<cfelse>
<cfoutput><div id="#URLEncodedFormat(qNav.objectid)#Menu"
onmouseover="menuMouseover(event)"></div></cfoutput>
</cfif>
</cfloop>
<cfsetting enablecfoutputonly="no">
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
