Member
Member
micheall   31-03-2013, 07:24
#1

Is it possible for one plugin file to have multiple option interfaces? I'm contemplating combingin the zenFBSuite into as few files as possible.

The reason I had it split as I did though was to use multiple options groupings from the option page. Could I create and handle multiple option interfaces from one plugin file?

Member
Member
micheall   31-03-2013, 07:51
#2

I realized my first post may be a bit confusing. Basically the functionality I'm asking about is having one option file load separate option groups.

Currently the zenFBSuite is broken into multiple files so each has it's own set of options. Combining into one would make one option group but that wide selection of options may be a bit overwhelming..

Edit:
Or is there a way to add a separator line/box etc?

Administrator
Administrator
acrylian   31-03-2013, 08:41
#3

No, we have no exact facility for that predefined. But you could setup custom options to group options. That is a bit more work though. We have a commented demo plugin which explains all options with some examples:
https://github.com/zenphoto/DevTools/blob/master/demo_plugin-and-theme/demo_plugin/zenphoto_demoplugin.php

I will have to consult sbillard if it would be possible to create sort of option groups by using more nested option arrays maybe. That could be a new feature in 1.4.5 maybe if possible.

Member
Member
micheall   31-03-2013, 08:43
#4

Yeah, I'll take a look at that. One of the other things I'm going to try doing is making an array of arrays for options. I'm going to break things horribly on my dev server, lol.

Administrator
Administrator
acrylian   31-03-2013, 08:59
#5

That will only work if you use the custom type. However, I opened a ticket about option groups. I think that would be a good GUI addition to have that.

Feel free to join any discussion there:
https://github.com/zenphoto/zenphoto/issues/317

Member
Member
sbillard   31-03-2013, 17:58
#6

See my comments on the ticket. The means of doing what you want already exists.

Member
Member
jphilbert   01-04-2013, 01:45
#7

I am interested in this as well ..since it seems I am motivated to make more plugins for Zenphoto smh

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.