Reapply the code for adding multiple tiles at once

Issue #146 new
Julian.Tovar created an issue

Hi team. Using Moodle 3.11 with Tiles from release 3.11.1.4, allows users to add multiple tiles at once, as seen in this screenshot of the interface:

Here I was adding 3 tiles at once to a course.

However, this feature seems to be missing when using Moodle 4.1 with Tiles from release "4.0.0.9 Beta". When you click on the “Add tile” button, it only adds one new tile automatically, without giving the option to add several tiles:

See the “Add tile” at the bottom of this screenshot.

Observed behavior

When clicking “Add tile” only one tile is added automatically.

Expected behavior

When clicking “Add tile” the user is prompted to specify how many tiles to add (unless there is a major reason why this feature can’t be reapplied to future versions of Tiles).

NOTE: It may not be enough to find the code needed to be reapplied to fix this issue, because if you mix Tiles 3.11 with Moodle 4.1, this feature also disappears, meaning that probably it’s something from Moodle 4.1’s code that makes this feature disappear, so it might be necessary to add proper new code to adapt Tiles to Moodle 4.1 in order to recover this feature. If this is the case, then the title of this issue could be misleading, because it’s not necessarily about reapplying code, but rather about recovering this feature.

Comments (3)

  1. David Watson repo owner

    Hi Julian in this case I followed the new approach being taken by the core topics format, i.e. to allow the editor to insert a tile anywhere in the course by clicking “Add tile” at the bottom of an existing tile. The ability to add multiple tiles to the bottom of a course is actually a core feature (which tiles was using) but, if I understand it correctly, it seems that core are moving away from that so I am following their lead.

    However if you go to the bottom of the course and click “Add tile” repeatedly, in my environment it does respond quickly so it’s actually pretty easy to add several tiles quickly. Can you live with that?

  2. Log in to comment