Making QuickLinks-Panel be local instead of global

Hello,

I’m currently searching for a way so the user (or rather the admin of a specific space) can configure the QuickLinks-Panel only locally, so it applies just for this space/page (and its children).

So for example the links I added in SpaceA, which are to be seen in the QuickLinks - Panel, will not appear in the QuickLinks - Panel in SpaceB (or SpaceC / SpaceD / etc).

I’m kind of clueless on how to achieve this, I’d be happy to receive any suggestions or solutions.


My first solution is to just check in the panel if the current document is in a specific space, and if true, then display the quicklinks you want to have in this space. However this is a kind of “hard-coding”-approach, which makes the Panels Code bloated as more and more QuickLinks are defined for different spaces.