- Posts: 5
COMMUNITY FORUM
[Solved] Plugin development : select admin tab
- jeandenis
- Topic Author
- Offline
- New Member
Less
More
11 years 11 months ago - 11 years 11 months ago #105852
by jeandenis
[Solved] Plugin development : select admin tab was created by jeandenis
Hi all,
With joomla 2.5 and latest K2 :
I'm studying the "youtube example plugin" and I can't figure out what makes it displayed in the admin "media" tab.
I can't find any reference to this tab in the plugin files.
Thanks for your time
With joomla 2.5 and latest K2 :
I'm studying the "youtube example plugin" and I can't figure out what makes it displayed in the admin "media" tab.
I can't find any reference to this tab in the plugin files.
Thanks for your time
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
11 years 11 months ago #105853
by william white
Replied by william white on topic Re: Plugin development : select admin tab
Best i remember, after you install the plugin, the form field to enter the youtube id appears below the content area of the k2 item in the backend
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 11 months ago #105854
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Plugin development : select admin tab
@jeandenis
The position is defined in the XML file of the plugin.
The position is defined in the XML file of the plugin.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- jeandenis
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 11 months ago #105855
by jeandenis
Replied by jeandenis on topic Re: Plugin development : select admin tab
Thanks guys for replying,
@William The plugin appears specifically in the Media tab. To clarify my question I'd like to find a way to choose the tab in which my plugin will appear.
@Lefteris You're right there is this "<params group="item-video">", however I search the whole K2 code with grep and did not find any other reference to this tab, even in the admin item template. Do you know the name of the other group tabs ?
Thanks a lot
@William The plugin appears specifically in the Media tab. To clarify my question I'd like to find a way to choose the tab in which my plugin will appear.
@Lefteris You're right there is this "<params group="item-video">", however I search the whole K2 code with grep and did not find any other reference to this tab, even in the admin item template. Do you know the name of the other group tabs ?
Thanks a lot
Please Log in or Create an account to join the conversation.
- jeandenis
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 11 months ago - 11 years 11 months ago #105856
by jeandenis
Replied by jeandenis on topic Re: Plugin development : select admin tab
Ok here it is in the view.html.php :
Thanks for pointing the stuff.
$K2PluginsItemContent = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'content'));
$K2PluginsItemImage = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'image'));
$K2PluginsItemGallery = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'gallery'));
$K2PluginsItemVideo = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'video'));
$K2PluginsItemExtraFields = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'extra-fields'));
$K2PluginsItemAttachments = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'attachments'));
$K2PluginsItemOther = $dispatcher->trigger('onRenderAdminForm', array(&$item, 'item', 'other'));
Thanks for pointing the stuff.
Please Log in or Create an account to join the conversation.