Hey all,
Is there anyway to add an extra tab to the publish page?
I basically want to create some kind of meta module that users can associate keywords and descriptions to any weblog post without adding custom fields all the time.
I see the Pages module has extended the publish page.
Is this possible to do with a normal module extension?
Is there any documentation on how this could work?
Cheers
I have created two extensions that add tabs on the Publish page.
Extensions are: “Easy_shop” creates the “Product” tab and the “Easy_gallery” creates the “Gallery” tab.
If I activate both of them only one tab shows. If I disable one, the other appears and vice versa. I use the same code for them. I’m trying to check if the ‘publish_form_new_tabs’ only loads one Tab. :(
For Gallery and something very similar for Easy_shop.
$DB->query($DB->insert_string('exp_extensions',
array(
'extension_id' => '',
'class' => "Easy_gallery",
'method' => "publish_form_new_tabs",
'hook' => "publish_form_new_tabs",
'settings' => "",
'priority' => 9,
'version' => $this->version,
'enabled' => "y"
)
);
function publish_form_new_tabs($publish_tabs, $weblog_id, $entry_id, $hidden) {
$publish_tabs['gallery'] = 'Gallery';
return $publish_tabs;
}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.