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

No way to exclude core blocks from specific modules if Blocks in Modules is enabled without changing core block code

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Inactive
    • 1.9.1
    • None
    • Blocks
    • None
    • MOODLE_19_STABLE

    Description

      Currently, the only way to exclude a core block from a specific module if "Show blocks on module pages" is enabled and applicable_formats() includes "mod" => true, is to change that function.

      As an example, we would like to exclude the People block from the list of blocks that can be added to a wiki page. To do this currently, we have to add "mod-wiki" => false in the applicable formats.

      The only blocks that we want to be in the block list for a wiki are the wiki blocks. This would entail making the above mentioned changes to at least 7 or 8 core blocks.

      Is there a way around this?

      Attachments

        Activity

          People

            Unassigned Unassigned
            sbc24 Sam Chaffee
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: