Rah's Tabtor

Rah_tabtor makes it possible to move Textpattern CMS’ admin-side navigation items around in the in the main menubar. This allows moving admin-side panels from a menu to an another. For instance, with rah_tabtor you can move a plugin generated navigation item from the Extensions to the Content menu.

Basics

Rah_tabtor let’s you to clone and cut backend’s navigation links from a tab area or a dropdown menu to an another from a nifty looking admin-side panel.

Whether a menu item can be merely cloned or cut depends on the origin of the item. This comes down to technical and implementation limitations. A plugin generated menu item can be cut and moved from the original spot, while built-in core items can only be cloned, creating duplicates. Removing the original menu item is not possible when it comes to core menus.

Cutting plugin generated menu items

When rah_tabtor is used for a plugin generated menu item, the item can be cut or cloned by your choosing. The modified menu item is removed from the original spot and presented in the set target location or multiple locations. Multiple menu items that point to the same panel are created by creating additional rules for the same target menu item.

Cloning built-in menu items

Due to limitations, built-in core menus can only be cloned. Original menu items can not be removed or moved in a way or other. When rah_tabtor is used for a core menu item, a clone is created.

Hiding and restricting menus, creating dynamic panels

Rah_tabtor doesn’t hide or remove navigation items, but the plugin’s solely purpose is exchanging items between menus. If you wish to change permissions and hide tabs based on a privilege level, I suggest checking out Redbot’s bot_privs plugin. For creating dynamic panels that allow use Textpattern’s tag markup, see Stef Dawson’s smd_tabber. These three plugins play well together.

Requirements

Installing

Copy and paste the installation code into the Install plugin box of your Textpattern Plugin pane.

Run the automated setup.

After the setup is done, activate the plugin. Done.

Configuring

After you have installed the plugin, you can find its user-interface and options from Extensions menu, named as Tabtor. The plugin’s panel allows creating, editing and deleting navigation item rules.

Creating a new rule

New rules that move navigation items can be created easily directly from rah_tabtor’s admin-interface. From the Tabtor panel you can find a button labeled as Create rule. Pressing this button will bring up an editor. Present will be the following options.

Label

Is the name of the new navigation item. The option supports language strings. To use a existing localized language string as the label, type in the string’s name to the field. If the specified label doesn’t match any language strings, it’s displayed as it is.

Event

Is the moved menu item. From the list you can find any item that can be moved.

Group

Is the target navigation area, menu or tab where the menu item is moved to. Available options are Home, Content, Presentation, Admin and Extensions.

Position

Is the menu item’s sorting value, used to change the item’s position in the target menu. The position will not affect existing built-in core menu items. The position is only used among moved menu items. All items that are moved using rah_tabtor will always appear after existing core menu items. This is due to technical limitations.