Adding Tabs in the Control Panel

In this short screencast I show how to add tabs to the ExpressionEngine Control Panel main navigation.  Adding tabs to Control Panel “hotspots” like the Weblog Administration or Field Group administration can save you some development time.

   


Category Navigation

<< Previous Entry   

 

Previous Comments

Picture of Charles Garrison

by Charles Garrison

Date: Tuesday, April 14th, 2009
Comment: #1

You mention that the tabs are setup on a per-user basis.  Is there a way that you know of to customize the tabs for all users of a specific group?  For example, add a specific tab for all administrators.

Mike Boyink

by Mike Boyink (Author)

Date: Tuesday, April 14th, 2009
Comment: #2

Hi Charles -

I don’t know the specifics off-hand but at some level all changes of this nature are saved to the database- so if you can figure what changes at the database when you make a new tab for yourself then you could write a query that would make those same changes for everyone in a particular member group.

Picture of Charles Garrison

by Charles Garrison

Date: Wednesday, April 15th, 2009
Comment: #3

Mike,

Thanks for the rapid reply.  I took your advise and did some testing.  It looks like the tabs are stored in the table named “exp_members” under the “quick_tabs” column.  The way it was designed is to store all custom tabs for the user in a single field, separating the data for each tab using the pipe character ( | ), and each tab with a line break - here is the format:

TAB_NAME_1|EE_LINK_1|POSITION
TAB_NAME_2|EE_LINK_2|POSITION

Here is an actual example of a user with 2 custom tabs:

tabtest|C=myaccount&M=pingservers&id=1|1
tabtest2|C=myaccount&M=theme&id=1|2

I will probably write a script to make universal custom tabs - If I do, I will post it here for reference.

Mike Boyink

by Mike Boyink (Author)

Date: Wednesday, April 15th, 2009
Comment: #4

Cool deal - thanks for the update.  Note that you can surround the script with [ code ]  [ / code ] tags (remove the spaces) to prevent EE from rendering the code.

Picture of peoplewhothink

by peoplewhothink

Date: Thursday, September 3rd, 2009
Comment: #5

Is there a way to have a tab that links to just a url and not a function of EE?

Mike Boyink

by Mike Boyink (Author)

Date: Thursday, September 3rd, 2009
Comment: #6

No, but you could add them to the utility links at the top/right of the CP.

Add Your Comment

Commenting is not available in this channel entry.

Unless otherwise stated all content is © Michael Boyink of Train-ee.com & Boyink Interactive. Please don't steal - I've got kids to feed...

dy>