How to query Menu items directly?

RiteCMS menu variables are explained below:

$menus: this is an array variable. it includes all menu items. The menus that you created for your website should be located at:

settings->menus

Every menus should have a name. Let us say you have created menus main_nav for the main menu and bottom_nav for bottom menu.

In your webpages, it is recommended that you refer to each menu in the menu settion of the property. Then in your template, it is referred to as #menus_1, $menus_2, etc.

However,you can refer to a specific menu directly with is variable $menus['main_nav'].

It might be rare that you need to do this but when you need it, it is handy.

Comments

No comments yet.




(optional)

Website designed and maintained by ZoriaMEDIA.com

© 2010-2020 the RiteCMS Project

RiteCMS is a free software released under GNU/GPL license. PhpSqliteCMS is under GNU/GPL license. TinyMCE is under GNU/LGPL license.
EazyMobile™ is a trademark of ZoriaMedia.com. RiteCMS & Logos, all contents of this website are © of the RiteCMS project.

Powered by RiteCMS