Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Menu Data
#1
Hi,

I am designing a new template and I am new to the GetSimple CMS. What I would like to do is to use the Text that I have entered for the Navigation in the Template.

I have seen <?php menu_data(); ?> but as yet I have not been able to get it to output what I want it to.

I have GetSimple 2.01 installed.

Is there a way just to directly pull out the <menu></menu> part of the xml direct?
Reply
#2
I know this is a bit old and you may have already found the answer, but here goes:

menu_data returns an array; it does not echo.

To see it in action try this in your template:

<pre><?php print_r(menu_data()); ?></pre>

The intent of this function is to allow you to format your menu data any way you want, as opposed to get_navigation() which echos the menu information formatted as a list.
Reply
#3
hello as I have to do to create submenus (drop down) in the main menu?
Thanks!
Reply
#4
http://get-simple.info/forum/topic/1351/...efinition/
Reply




Users browsing this thread: 1 Guest(s)