I have created a top level menu item via the add_object_page method and admin_menu hook. I want to be able to utilize the media_buttons hook and the plugins functionality there. I would like to have the Thickbox pop-up load the same HTML that is loaded when I click on the menu items.
TOP LEVEL MENU (unique ID= TLmenu)
For example, for the media_button hook, I have set the URL to be: admin.php?page=TLmenu&action=create&TB_iframe=1
This loads the content into an iFrame within the Thickbox. The (perhaps obvious?) problem is, the whole admin dashboard is loaded into the pop-up (left-sidebar, header and all) and I am curious is there some flag, setting or some logic I am missing?
I am using the media_buttons hook, which I cannot find too much support on.