GEROBASE TUTORIALS > WORKING WITH MENU BLOCKWhat is a menu block ?
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 blockIn 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">
|