Plugin tab view, no parameters?

18 years 6 days ago #10104 by ben_emo
Plugin tab view, no parameters? was created by ben_emo
A quick question about plugin development - I'm working on a plugin, but on the 'CB -> Tab Management -> Plugin' page, the parameters show up as a blank textarea - not as a message 'no plugins' which is what I expected.

Am I missing something here? In my XML file for the plugin I have the <tabs> section with a blank <params> section.

Thanks!

Please Log in to join the conversation.

17 years 11 months ago #10653 by ben_emo
Replied by ben_emo on topic Re:Plugin tab view, no parameters?
Ok this might be a bug? I nailed this problem down to having a section in the plugin xml file with params (the main plugin parameters) containing a param with a class attribute - having this section above the tabs section with its own params section made the tabs params stop working..

IE:

[code:1]<params>
<param class="x" />
</params>

<tabs>
<tab>
<params>
<param />
</params>
</tab>
</tabs>[/code:1]

Means that the second <param> doesn't get shown. If I reversed the order and had tabs above params in the xml file it works ok..

Please Log in to join the conversation.

17 years 11 months ago #10844 by beat
Replied by beat on topic Re:Plugin tab view, no parameters?
Looks like a small bug in the xml handling. Thanks for having submitted at the forge...

For now, avoid the name "class" in params.

But, why do you use this "class" argument ? :blink:

I think CB doesn't treat it anyway... :ohmy:

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 11 months ago #10996 by ben_emo
Replied by ben_emo on topic Re:Plugin tab view, no parameters?
Ah ok thanks for the feedback.. Actually I just copied the code from the plug_yancintegration plugin, so I'm not sure whether it's needed - I will experiment later and post my results..

Thanks! :D

Please Log in to join the conversation.

17 years 11 months ago #11373 by beat
Replied by beat on topic Re:Plugin tab view, no parameters?
Fixed in soon coming 1.0 stable...Thanks!

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.178 seconds

Facebook Twitter LinkedIn