Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67595

Support block sub-plugins

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.9, 3.6.7, 3.7.3, 3.8
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE

      Description

      I see this has been raised before (often historically, e.g. MDL-20378, MDL-37944) and usually it's gone nowhere for various reasons.

      The use-case: I have a block that does a variety of things, and right now the list of things it can do is somewhat hardcoded inside the block itself, but logically and structurally it should be pluggable. Now, I can get part way there by way of core_component::get_component_classes_in_namespace and just namespace things in a strict way, but that's not the same as having proper separation and support, and doesn't solve things like styles and templates that are tied to the subplugins if they existed.

      I think there's been enough traction in previous tickets to suggest that the development is probably worth the effort.

      I'm happy and willing to spend the dev effort not only on the core changes, which don't seem that gruesome (given the head-start in MDL-37944) but also if someone can give me a pointer to how to get AMOS started in a test environment where I could poke it a bit, I'd be happy to try adding support for it. (I'd also do the plugins directory but that doesn't seem to be public.)

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            peter.spicer Peter Spicer
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: