Flexipage - not handling instance_allow_multiple()

Flexipage - not handling instance_allow_multiple()

by Valery Fremaux -
Number of replies: 2

Apparently, calling for a second instance of a bloc marked as instance_allow_multiple() { return false } do insert a second instance of the block in the page.

Should'nt be some provision to avoid this, although letting adding a reference to that unique block instance in other pages ?

Cheers.

Moodle : 1.9.3 / Page format for 1.9

Average of ratings: -
In reply to Valery Fremaux

Re: Flexipage - not handling instance_allow_multiple()

by Paul Vaughan -
I've just experienced this behaviour on the front page: a block with instance_allow_multiple { return false; } is allowed multiple instances. Any ideas?
In reply to Paul Vaughan

Re: Flexipage - not handling instance_allow_multiple()

by Jessica Gramp -
Picture of Moodle HQ Picture of Plugin developers
I am experiencing this same problem with a block I am developing where multiple instances are being allowed even though I have added the function instance_allow_multiple { return false; }. Did you manage to resolve this issue?

Thanks in advance.

Jess