2

I am trying to re-create the menu items from main menu in Joomla in a page, which is outside Joomla's template folder.

Are there any method available, such as 'wp_nav_menu' in Wordpress, which would help me to generate the Menu.

s_s_
  • 463
  • 5
  • 20
  • To clarify, are you trying to re-create the menu from your Joomla-generated pages for a non-Joomla page? – Cynthia Aug 18 '12 at 13:06
  • yes, i have a page in another Application, where i need to genertae the menus defined by Joomla Admin – s_s_ Aug 18 '12 at 13:27
  • I think you're going to have to view the source on one of your Joomla pages and cut and paste the menu code from there and hard code it into your non-Joomla application. Make sure you also call the template.css file from your Joomla template as well so that the menu styling matches. – Cynthia Aug 18 '12 at 13:49
  • I am pretty new to Joomla, but all what i can figure out is there is just one liner code in Joomla Template, which renders the required HTML code `` – s_s_ Aug 18 '12 at 13:53
  • you can either hard code it or establish a connection to the database, pull the menu items and echo each result within an `
  • ` tag. If you have a dropdown menu then it will be harder. else might be easier to hard code it
  • – Lodder Aug 18 '12 at 14:53