Multiple Option Interfaces

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?

Comments

  • 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?
  • acrylian Administrator, Developer
    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.
  • 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.
  • acrylian Administrator, Developer
    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
  • See my comments on the ticket. The means of doing what you want already exists.
  • I am interested in this as well ..since it seems I am motivated to make more plugins for Zenphoto smh
Sign In or Register to comment.