Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Multiple "parts" directory in one plugin #7591
    xeiter
    Participant

    @Steve, thank you for picking up the issue of having Piklist included in my plugin – I will refactor.

    Re: your question 1) when I say Addons I do not mean Piklist addons. I mean my own plugin addons (let’s call them “Features” instead).

    I am building a plugin that would get administrators to enable/disable features through the their own WP admin interface (kind of like Piklist Addons or WP Plugins). It uses PSR4 for its folder structure and each Feature sits inside /src/Feature directory. I am using Piklist as a framework for defining CPTs, metaboxes, setting pages etc. – some tihngs are plugin wide definitions and some are Feature specific.

    My thinking here was to get each Feature to be incapsulated into its own directory /Features/Feature-1 and that would include the “parts” directory where I would define stuff only related to the particular Feature.

    It’s a not a big issue though. if I can’t have it this way, I will re-think how I would use Piklist here.

    Kind regards,
    Anton

    in reply to: Multiple "parts" directory in one plugin #7587
    xeiter
    Participant

    Hi again Steve,

    ok I had a look and unfortunately, unless I don’t understand it correctly, you were talking about Piklist addons and I was talking about addons of my plugin.

    Basically, here is the set up I have in my plugin. My plugins has:

    1) “Plugin Type: Piklist” in the comments section to get it working with Piklist
    2) /vendor directory that holds Piklist framework source code
    3) /parts directory that by default holds all the Piklist parts

    I also have /src/Addons directory and that’s the directory that has my plugins addons (not Piklist addons).

    /src/Addons/AddonName1
    /src/Addons/AddonName2
    /src/Addons/AddonName3

    Under each of the directories above I’d like to have parts directory and only “activate” those parts if my addon, “AddonName1” for example, is “activated” within my plugin (not using addon activation functinoality that Piklist provides).

    Basically I am seeking a way to breakout of the Piklist path conventions for parts and addons and have the parts directory sit in each of my plugins addons directory:

    /src/Addons/AddonName1/parts
    /src/Addons/AddonName2/parts
    /src/Addons/AddonName3/parts

    Apologies if I confused you. I maybe on the wrong path here. The reason I want it this way is that I am building a plugin that allows to activate/deactivate features and each feature would use Piklist.

    Kind regards,
    Anton

    in reply to: Multiple "parts" directory in one plugin #7586
    xeiter
    Participant

    Thank you, Steve – I will check it out!

    …and I am really glad that Piklist is not dead. When I saw that other thread I was like… OMG…. all good whew.. offtopic anyway (https://piklist.com/support/topic/is-it-true-that-piklist-is-dead/).

    Thank you for your answer.

    Kind regards,
    Anton

Viewing 3 posts - 1 through 3 (of 3 total)