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

Should we support power-users who want to use arbitrary pagetypepatterns for blocks?

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: DEV backlog, FRONTEND
    • Component/s: Blocks
    • Labels:
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      This follows on from MDL-27829.

      Using the standard Moodle editing interface, you can only set certain values for pagetypepatterns for blocks. This is all that most people will want.

      However, the underlying blocks system is capable of being much more flexible that that. Do we want to support power-admins who want to do weird things by, for example, putting custom values directly in the blocks table.

      All I propose we do is what is already suggested in a comment in the code:

      } else {
          //as a last resort we could put the page type pattern in the select box
          //however this causes mod-data-view to be added if the only option available is mod-data-*
       
          //as a last resort we could put the page type pattern in the select box
          //however this causes mod-data-view to be added if the only option available is mod-data-*
          // so we are just showing a warning to users about their prev setting being reset
          $displaypagetypewarning = true;
      }
      

      I suggest that we do actually add the custom page-type to the menu, with a clear lang string like "Special non-standard value 'mod-pony-*-foal'".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              timhunt Tim Hunt
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: