Fuel_nav() with group name

edited June 2016 in Modules
Hi,

How do you use the group name when getting the nav items? Currently I can only get the nav items if I use the Id. The problem I have with using the Id is that at no point was this Id given to me. I had to go guess what it was.

<?= fuel_nav(['group_id' => 2]) ?>

how can this be changed so I can use

<?= fuel_nav(['group_name' => 'footer']) ?>

Comments

  • edited 5:55PM
    Actually group_id will also check if it is a string value or not and if so, will check the navigation group name value instead of the ID. Did you try that yet?
  • edited 5:55PM
    Ah no I did I will try that now, thanks :)
Sign In or Register to comment.