ColdFusion Custom Tag Header and Footer Demo

jump to content

Examples

Add items to menu

Add items to menu:

<!--- add item to top menu --->
<cfset arrayappend(headerMenuItemsArray,"Extra Item,index.cfm") />
<!--- add item to side menu --->
<cfset arrayappend(sideMenuItemsArray,"Extra Side Item,index.cfm") />

<cf_demoHeader title="main" headermenuitems="#headerMenuItemsArray#" sideMenuItems="#sideMenuItemsArray#">
	<h2>Add items to menu</h2>
	...content here...
<cf_demoFooter>

In this example an menu item has added to both the top and side menus.