Keyword

[Solved] Plugin development : select admin tab

  • jeandenis
  • jeandenis's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago - 11 years 11 months ago #105852 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

Please Log in or Create an account to join the conversation.

More
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.

More
11 years 11 months ago #105854 by Lefteris
Replied by Lefteris on topic Re: Plugin development : select admin tab
@jeandenis

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
  • jeandenis's Avatar Topic Author
  • Offline
  • New Member
More
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

Please Log in or Create an account to join the conversation.

  • jeandenis
  • jeandenis's Avatar Topic Author
  • Offline
  • New Member
More
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 :
$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.


Powered by Kunena Forum