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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 1.9.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      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

            • Assignee:
              Unassigned
              Reporter:
              sbc24 Sam Chaffee
              Participants:
              Component watchers:
              Adrian Greeve, Damyon Wiese, Mihail Geshoski, Peter Dias
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: