Dashboard block contexts

Dashboard block contexts

by Cristian Martin Nieto -
Number of replies: 1

Hello there!

I am struggling creating a block that allows administrators to create a dashboard block containing a file that gets shown in all dashboards once they get reset all dashboards to default (No one else can modify dashboards).

When users log in back to their dashboard, a new instance of the block is created, changing the context and instance. I can't see any reference to the "original" block in the default dashboard to be able to retrieve the file I stored in my filearea. I'm trying to retrieve the file with an address such as /pluginfile.php/#contextid/blockname/filearea/#instanceid/filename.

Has anyone got an idea on how to tackle the challenge ?

Average of ratings: -
In reply to Cristian Martin Nieto

Re: Dashboard block contexts

by Cristian Martin Nieto -

After some tests I can add a clarification. The problem above only happens when a user with permissions to add block instances (such as an administrator) logs in. If a normal user logs into the dashboard, the block instance is not "duplicated".

I still consider this an issue though.