Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:30:33+00:00 2026-05-30T10:30:33+00:00

i have this menu: $menu[‘talent’] = array( array(‘id’ => ‘welcome’, ‘label’ => ‘My Profile’,

  • 0

i have this menu:

 $menu['talent'] = array(
                 array('id'     => 'welcome', 
                       'label'  => 'My Profile', 
                       'uri'    => '/profile/,
                       'class'  => 'navlink'
                       )
                 ),
                 array('id' => 'welcome', 
                       'label' => 'My Profile', 
                       'class'  => 'navlink',
                       'uri' => '/profile/
                 ),             
    );

this will end up looking like this:

<ul>
    <li><a href="" class="navlink">My Profile</a></li>
    <li><a href="" class="navlink">My Profile</a></li>
<ul>

how can i change the ul into a div and also the li into something else?

any idas?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:30:34+00:00Added an answer on May 30, 2026 at 10:30 am

    Well, to accomplish this I would use one of these two methods:

    Using a View Helper and overload menu()

    In order to overload Zend_View_Helper_Navigation_Menu, you could write you own helper, register it and make it extends Zend_View_Helper_Navigation_Menu. In your helper, you can overload the method you want such as _renderMenu() and make it renders <p> instead of <li> for example. In your View Helper, you would have to return the parent::menu() or something like this.

    Finally, you have to register this new View Helper using:

    $view->addHelperPath(APPLICATION_ROOT . '/library/My/View/Helper/Navigation', 'My_View_Helper_');
    

    Using a partial script

    This one seems to me a little bit longer, but it worth a try.
    Basically, you need to set a partial script to your navigation using setPartial() method and you menu will be rendered through this partial.

    <?= $this->navigation()->menu()->setMaxDepth(2)->setPartial('partials/_nav.phtml')->render() . PHP_EOL; ?>
    

    Afterwards, in your _nav.phtml you can render your menu as you wish. From this partial, you can access the menu variables using $this->container. Then, you can iterate through each page of your container, and display what you want.

    I know all of this seem pretty complicate for such a simple task, but unfortunately this is the only solution. Does anyone have a better idea?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this html menu: <ul id='main'> <li class='active current' id='lighty'> <a href='/'>Lighty</a> <ul>
I have a nested menu like this: <ul id=menu> <li>Home <ul> <li>New</li> <li class=selected>Open</li>
I have a menu list something like this: <ul class=submenuList> <li><a onclick=loadItem('Blue%20Orchid%20Press') id=Blue%20Orchid%20Press>class=on>Blue Orchid
I have this array that populates a dropdown menu. The key is my database
I have a dropdown menu with this HTML: <ul id=dropdownmenu class=dropdown maintopmenu> <li class=topmenu
I have this vector. vector<CXFileEntity>* menu;// CXFileEntity is class When i try load an
I have this menu ( @ jsFiddle ) where this will happen given the
i have this menu: <ul class=lavaLamp id=menu> <li><a href=./index.xhtml >Home</a></li> <li class=current><a href=#>Company</a> //..
I have this menu in a partial: <ul id="submenu"> <li><a href="/mypage/profile/<%=user[0].id %>">Profile</a></li> <li><a href="/mypage/test/<%=user[0].id
I have this menu: <ul id=nav> <li class=level0>Item 1</li> <li class=level0 parent> <a><span>Click Me!</span></a>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.