Linux 软件免费装

Navception

开发者 Faison
更新时间 2014年10月22日 11:46
PHP版本: 3.5 及以上
WordPress版本: 4.0
版权: GPL2 or later
版权网址: 版权信息

标签

embed menu navigation menus wp_nav_menu nav menu submenu submenus nav menus nav menu items menu item embed menu

下载

1.0.0 2.0.0

详情介绍:

About Navception Navception: The act of embedding a pre-constructed WordPress Menu inside another WordPress Menu. Navception adds a simple feature to WordPress Menus, but opens the door to powerful possibilities. New to your WordPress Nav Menu editor, is a box that lets you add menus into your menus! This allows you to create one menu to include as a submenu once in another menu, multiple times in another menu, or multiple times in multiple menus. What makes this so powerful is that if you decide that your submenu needs another link added to it, you only have to update it in one place! Navception, a simple concept with powerful results! Let's look at a couple of scenarios: Without Navception With Navception Navception's Inception Navception became a thought when working on a client's main menu. This menu was a typical 3 level menu, with two submenus that were repeated 4 times each. Those submenus were a hassle to add and a pain to maintain. When I realized that I wanted a plugin that allowed me to create a submenu once and include it as a menu item in a separate menu, I was surprised to find that no such plugin existed. Navception became a necessity when working on that same client's main menu. This menu became so large that I received the following warning: "You are approaching the post variable limit imposed by your server configuration. Exceeding this limit may automatically delete menu items when you save." It turns out that every Nav Menu Item in the WordPress Admin area has roughly 8 inputs associated with it. One of the aforementioned submenus contained 7 menu items, or 56 inputs. Using Navception, I created that submenu as a stand-alone WordPress menu, then included it as 1 menu item in the client's main menu. This reduced the inputs generated by that submenu from 56 to 8. Since that submenu was included 4 times, I not only avoided the Post Variable Limit, but I also made the menu easier to manage. Dangers of Navception When embedding menus in other menus, you must take care not to include the same menu in itself. When done directly or indirectly, this can cause your website to go into an infinite loop (aka Limbo) when attempting to display the menu. I added some safeguards to keep you from accidentally causing this to happen, though I'm only 90% confident that I covered all scenarios. If you ever put your website into Limbo, you only need to remove the menu you embedded, then please make a post in the support forum telling me what you did so I can cover that case as well.

安装:

You install Navception like you would any other basic plugin. For details read the WordPress documentation on installing plugins

屏幕截图:

  • Creating the WordPress menu you wish to use as a submenu
  • Selecting the Menu in the Navigation Menu meta box
  • Adding the Menu as a Menu Item to another Menu
  • Viewing the Menu with the embedded Menu

升级注意事项:

2.0.0 Navception has been refactored to work better and more efficient. This update "shouldn't" cause any issue, but since it's a big update, you should test this before updating on any production environments. Good news though, this should play nice with Custom Nav Walkers. And by that I mean I don't step on your toes. 1.0.0 If you have a version less than 1.0.0, something went really, really wrong. Upgrade now, because I have no idea what will happen if you don't!

常见问题:

Why don't I see the Nav Menu Menu Items in the Menu Editor?

WordPress might have the Nav Menu options hidden after activation. To fix this, go to the menu editor, click the "Screen Options" button, then make sure the checkbox next to "Navigation Menus" is checked.

更新日志:

2.0.0 1.0.0