JCR mix:shareable & magnolia

6 views
Skip to first unread message

Samuli Saarinen

unread,
May 3, 2024, 6:29:33 AMMay 3
to Magnolia User Mailing List
Hi,

Has anyone experience in using mix:shareable with Magnolia? 
For background  I was looking for a way for a page (or more likely page hierarchy) to exist in different parts of the site and was thinking that something like symbolic links in (linux/unix) filesystem would work nicely. And of course there is a concept called mix:shareable in JCR (since 2.0) that makes it possible to add same nodes (clone w/ same uuid) under different parents.

I tested this with some groovy scripts and was able to add shareable nodes in website workspace and AFAIK it actually works. I can edit one node and changes are reflected in the "shared clone". Only things that I found out do not handle this are magnolia admin apps (Pages / JCR browser) as it seems that, at least tree view, internally uses UUIDs of nodes and thinks that those are unique and shareable nodes share the same uuid. So what ends up happening is that selecting/deselecting one of the shared nodes, acts "funny" eg. both are shown selected but deselecting only removes one of the nodes selection (visually). Actions can be done only to the "first" one. Although I think this would be fine as they are effectively the same node.

So my thinking at this point is that this could be utilized for some special use cases but also should be avoided because of the admin UI quirks.

BR, Samuli

Mykola Soldatenkov

unread,
May 3, 2024, 6:42:48 AMMay 3
to Magnolia User Mailing List
did you checked live copy module?
it provides a way to reuse tree of pages



--
You received this message because you are subscribed to the Google Groups "Magnolia User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to user-list+...@magnolia-cms.com.
To view this discussion on the web, visit https://groups.google.com/a/magnolia-cms.com/d/msgid/user-list/8e20b497-195a-4f98-bdc3-2f5e960adbc5n%40magnolia-cms.com.

Samuli Saarinen

unread,
May 3, 2024, 10:46:20 AMMay 3
to Magnolia User Mailing List, Mykola Soldatenkov
Stumbled to this one also and it might do the trick also. I have to check / test it as well. Also I went down the rabbit hole a bit deeper trying to create a custom pages app with it's own workspace that would also allow mix:shareable to work maybe a bit better but ended up with other issues (another question) and probably some more on the way :D

Thanks, Samuli
Reply all
Reply to author
Forward
0 new messages