Multiple blocks on a page share settings

Created on 30 April 2020, over 4 years ago
Updated 25 April 2024, 7 months ago

If you add the same block on a single page, all blocks change if you "change the settings of one block".
http://www.root.artwaves.de/sharex/30-04-20--11-56-53.jpg

Each block should have its own settings i guess as that makes blocks so powerful and reusable? What do you think.

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇩🇪Germany marcoka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain bmunslow

    The approach by @riyas_nr is to keep the static caching of the view and differentiate based upon the view name or display ID. It fixes the issue tot, although view name and display ID should BOTH match before returning the static object (since it's quite common to have views with different names but same display IDs, e.g. block_1, etc.).

    The attached patch improves on #9 by make sure both the view name and display ID match the static object or otherwise creating it from scratch.

    Important to bear in mind #3 though. IMHO removing static caching altogether would be best in this case, although patch #8 needs a re-roll...

Production build 0.71.5 2024