Dashboard > FarCry 3.0 Developers Guide > ... > Developers Exchange > Webskin Extras > Brainjar Menus
Added by Geoff Bowers , last edited by David Whiterod on Jan 06, 2006  (view change)
Labels: 
(None)

FarCry Implementation of the Brain Jar menu

Contributors

Chris Kent; Jeff Coughlin (xCode fixes); David Whiterod

Recent Changes

21 Dec 2005: Uses ObjectID (instead of objectName) as the ID of submenus. This allows duplicate navigation folder names and removed the need to clean non-XHTML characters from the menu name.

  Name Size Creator Date Comment  
ZIP Archive bjMenu.zip 7 kb David Whiterod Jan 06, 2006 Download the bjMenu extension  

The BrainJar menu creates a dynamic, multi-level, drop-down menu for your site. It's built from standard HTML elements using CSS to define the look and layout and JavaScript to handle the action of the drop-down menus.

Mike Hall gives a step-by-step introduction to the menu in Revenge of the Menu Bar.

Installation

  1. Copy _bjmenu.cfm to your site's includes directory
  2. Copy bjmenu.css to your site's CSS directory (example CSS as used on http://www.atlas.sa.gov.au/go/about)
  3. Copy bjmenu.js to your site's JavaScript directory (Copyright 2000-2004 by Mike Hall. See http://www.brainjar.com for terms of use.)
  4. Add the CSS and JS files in the head section of you dmHeader.cfm file
<link rel="stylesheet" type="text/css" href="#application.url.webroot#/css/bjmenu.css" media="screen" />
<script language="en" type="text/javascript" src="#application.url.webroot#/js/bjmenu.js"></script>

<cfmodule> the _bmenu.cfm file where you would like the menu in your page:

<cfmodule template="/farcry/#application.applicationname#/webskin/includes/_bjmenu.cfm">

The (optional) arguments are:

  • startNavID default="#application.navid.home#"
  • includeHomeLink default="true"

While I haven't done any thorough testing, the BrainJar menu seems to work just fine in Farcry 4 with a couple of changes:

The cfmodule call:
<cfmodule template="/farcry/#application.applicationname#/webskin/includes/_bjmenu.cfm">
to
<cfmodule template="/farcry/projects/#application.applicationname#/webskin/includes/_bjmenu.cfm">

and in _bjMenu.cfm (line 54):
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
to
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">

Powered by a free Atlassian Confluence Open Source Project License granted to FarCry CMS. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators