GEROBASE TUTORIALS > WORKING WITH MENU BLOCK

What is a menu block ?

TUTORIALS BLOCK DEMO

<<< This is a menu block !
With Gerobase, you can create and control the all navigation of a website with menu blocks.

How has it been created ?

Placing menu block in a page

<cfmodule template="../../API/MenuBuilder.cfm" menu="blockdemo" MainDB="#application.MainDB#" MenuTheme="GeneralMenuTheme.cfm">

This code has to be placed where the menu block should be (normally, in the themes pages, but it can be placed in the content of the page without problem as above). If placed outside of a theme, you will have to deal with the relative path of API/MenuBuilder.cfm file.

2 attributes are very important :
Menu : this is the calling name as in defined in the menues manager.
MenuTheme : the menu theme that will be applied to the block.


Skinning menu block

In gerobase, Menu blocks are skinnables and extendables. It means that you can apply different graphic themes to block, make them vertical, horizontal, using flash, dhtml, there is no limit. Some code to illustrate, the same block with two differents themes :

<cfmodule template="../../API/MenuBuilder.cfm" menu="blockdemo" MainDB="#application.MainDB#" MenuTheme="GeneralMenuTheme.cfm">
<cfmodule template="../../API/MenuBuilder.cfm" menu="blockdemo" MainDB="#application.MainDB#" MenuTheme="DemoMenu.cfm">

Here is the result :
TUTORIALS BLOCK DEMO