avabrazerzkidai.blogg.se

Quickmenu opencube
Quickmenu opencube







Make sure the styles match the ones used in the style sheet you are using.

#Quickmenu opencube code#

Define the code used for the start and end of the menu, start and end of submenus, and for menu items. The doCatMenu function is where you can customize the html that gets output for the nested list for whatever menu you are using. The file do_catmenu.cfm contains the code for creating the category menu. For the example, we are using a style sheet for a vertical category menu, and a horizontal Office-style css for the page menu.

quickmenu opencube

The next lines are used to print out the menu javascript file and the desired style sheets to the header of the page. This includes the two functions that will take our XML category tree and create the nested list from it. The first line of code in do_dhtml_menus.cfm includes the menufunc.cfm file. Let’s take a closer look at how this is done and how you can customize it for your own needs. The store comes with code that will recursively parse the XML and create a nested list from it which can then be used for a CSS/DHTML menu. You can then use that XML to create any type of menu, be it CSS-based, javascript, or even Flash. These menus use a new function in CFWebstore ® which takes your categories and/or pages and outputs them into XML. See the category menus and page sections above for more information on the various attributes you can use with these methods.Ī method of doing more complex, DHTML-based menus is demonstrated in theĭo_dhtml_menus.cfm page (used with the lay_menus.cfm layout file). This can be changed if you use menus that change from page to page for a user. This will be updated when the user logs in or out of the system. By default this page stores the created menu into session memory to improve performance. You can also modify the component to do a recursive call, to create submenus (typically done for categories). You have a variety of arguments you can send into the component to set things like style class, orientation, image versus text menus. These menus are created by the menu component in the cfcs/layout directory.

quickmenu opencube

You can use the Pages & Menus section to create a similar cascading menu for pages as you can for categories.Īn example of using the old style menus can be found in the put_sidemenus.cfm page in the layouts directory.

quickmenu opencube

as well as any additional store content pages. The page menu is all the stand-alone pages for store functions like the shopping cart, search, user account, etc. The category menu is created from the categories you set up for your store, which would have your products, feature articles, etc. The menus are generally broken into 2 sections – the category menu and the page menu. The old-style menus using a custom tag to create text or image-based menus, and a new menu-building set of functions ideal for cascading DHTML menus. CFWebstore ® now comes with a number of options for building your store menus.







Quickmenu opencube