Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] how add custom nav-tab in admin panel ?
#1
Hi all,

there is same example for adding a custom tab in admin menu ??

Code:
nav-tab
Allow insertion of a new tabbed entry in the navigation bar


i want to add a managment page for edit a guestbook xml file by a plugin

tnx and regards Smile
Reply
#2
I am sorry I am not really understanding your question, are you wanting to create a new tab at the top of your GetSimple
Administration page or to the right of your GetSimple Administration page?
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#3
At the top.

Ex.

default tabs: Edit, File, Theme, Backups, Plugins ...


Now i want write a custom plugin for edit an external xml file, like "Page Editing Mode"
so it becomes: Edit, File, Theme, Backups, Plugins, Edit Xml


This is the mockup:
Reply
#4
I am not sure what the best way to do this would be, however I do know it has been done by JullianCC. I will explain how she does it.

You will need to add the following code after you have registered your plugin:
Code:
if (file_exists(GSPLUGINPATH.'squareit-loadtab.php'))
{
    //hooks using tab loader
    add_action($thisfile.'-sidebar','sqr_createSideMenu',array($thisfile, $thisfile,'SIDE BAR TAB'));
    add_action($thisfile.'-sidebar','sqr_createSideMenu',array($thisfile,'squareit_admin_add_new_poll','SIDE BAR TAB'));
    add_action('nav-tab','sqr_createNavTab',array($thisfile,'TAB NAME'));
}
else
{
        //hooks not using tab loader
    add_action('plugins-sidebar','createSideMenu',array($thisfile,'TAB NAME'));
}

You will also need to add the attached plugin to plugins/

Let me know if how this works for you!
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#5
many tnx Matthew Smile

It works but the script needs loadtab.php in admin dir
Reply
#6
@OWS_Matthew - I'm a he not a she. Smile

@Michelino - Just like OWS_Matthew pointed out. I created a plugin that could aid me in creating tabs in getsimple.
You an anybody is free to download this plugin and bundle it with your own plugins.

Here is the link:
http://www.smooka.com/blog/wp-content/pl...d.php?id=5

Thanks
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply
#7
juliancc Wrote:@Michelino - Just like OWS_Matthew pointed out. I created a plugin that could aid me in creating tabs in getsimple.
You an anybody is free to download this plugin and bundle it with your own plugins.

Here is the link:
http://www.smooka.com/blog/wp-content/pl...d.php?id=5

Thanks

many many thanks juliancc, this plugin is very very usefull Smile
Reply




Users browsing this thread: 1 Guest(s)