SocialEngine 4: Change Items Shown On Menu Bar

Andrew - SocialEngine

Increase or Decrease Items Shown in the Menu Bar

You may wish to change the number of items displayed by the menu bar, by either increasing or decreasing the number shown. When there are too many tabs a “more” button is added, and all entries past the limit are put into the “more” menu. You can change that number to something higher.

To remove the more button, or if there are too many tabs and the menu bar begins to wrap the number can be changed to something lower.

Solution

Edit the ./templates/header.tpl file and look for the following block of code around line 75:

{* SHOW ANY PLUGIN MENU ITEMS *} {hook_foreach name=menu_main var=menu_main_args complete=menu_main_complete max=9}
{lang_print id=$menu_main_args.title}
{/hook_foreach}

And then this code around line 95:

{* SHOW ANY PLUGIN MENU ITEMS *} {hook_foreach name=menu_main var=menu_main_args start=9}
{lang_print id=$menu_main_args.title}
{/hook_foreach}

In both places:

{* SHOW ANY PLUGIN MENU ITEMS *} {hook_foreach name=menu_main var=menu_main_args complete=menu_main_complete max=9}

and

{* SHOW ANY PLUGIN MENU ITEMS *} {hook_foreach name=menu_main var=menu_main_args start=9}

change max=9 and start=9 to amount of tabs you desire in the menu bar.

By default, after 9 entries, a “more” button is added, and all entries past the first 9 are put into the “more” menu. You can change that number to something higher, in both instances it appears, to remove the more button.

*Note, in newer versions, the “9” is a “7” by default

 

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting

Tags: , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *