[SOLVED] Showing admin menu problems

edited October 2014 in Modules
I don´t see clear how to show the admin menus in the page.

I tried this :<?php echo fuel_nav(array('group_id' => 'main' )) ?>
this: <?php echo fuel_nav(array('1' => 'main' )) ?>
this: <?php $this->fuel->navigation->group(array('1'=>'main', 'var'=>'main')) ?>


I really see documentation a bit confunsing, is the topmenu a predefine Fuel menu?, or is created with variable. In the blog there a tutorial but there is no download to se how is made inside, that could be much more easy to compare between what is done and what I am doing.

Thanks

Comments

  • edited 6:58PM
    Does anything appear when you simply just do the following:
    <?php echo fuel_nav() ?>
    When you say documentation, do you mean these pages:
    http://docs.getfuelcms.com/general/navigation
    http://docs.getfuelcms.com/libraries/fuel_navigation#func_render
  • edited 6:58PM
    Sorry, but nothing happens when I put <?php echo fuel_nav() ?> in the header or any other place.

    I have read documentation, those two pages, and also tried these solutions too.

    http://forum.getfuelcms.com/discussion/439/creating-multiple-menus/p1
    http://forum.getfuelcms.com/discussion/80/navigation-using-cms/p1

    I know is probably the most stupid thing, something in the configuration?.

    If i put this $config['fuel_mode'] = 'views'; to auto, I get a blank page.

    Thanks
  • edited 6:58PM
    Are you seeing a page at all with any HTML (view source)? Also, is there anything in the fuel/application/views/_variables/nav.php file
  • edited 6:58PM
    Yes, I can see the page, I am editing them, also I am working the menu css with the example inside the /_variables/nav.php , at least until I can use the admin menu, and including <?=fuel_nav()?> works perfect but only with nav.php.


    Thanks for your time.
  • edited October 2014
    [solved] I had to connect $config['fuel_mode'] = 'views'; to auto. The blank page was that I didn´t put to the _layouts/main.php the header. I knew it was some kind of stupid error. Now I have problems with language, but first continue learning more about fuel.

    And now this is working perfect <?=fuel_nav(array('group_id' => 'id'))?> if you change the ID it works.

    for example: topmenu group id 4:

    <?=fuel_nav(array('group_id' => 4))?>



    Thanks again.
Sign In or Register to comment.