Different Layouts applied to root nodes for a shared asset seem to conflict


(Nic Hubbard) #1

I have some Single Calendar Events under Site #1 that I need to edit using Simple Edit Layout #1. On Site #2, I am using those same Single Calendar Events, and need to be editing with Simple Edit Layout #2 to show a different editing interface.

 

After applying Simple Edit Layout #1 to the Layouts screen to a root node (not shared with site 2) in Site #1, then applying Simple Edit Layout #2 to a root node in Site #2, I preview both each of the URLs for that asset using /_edit. But, each of them are using Simple Edit Layout #2, rather than the layout that is applied to a root node, and should cascade down.

 

Am I not understanding how Layouts work here? The manuals state they they are applied to a root node.

 

Here is how I structured a test of the issue for better clarification:

 

Screen%20Shot%202014-07-14%20at%204.23.0

 

v5.0.1.1


(Bart Banda) #2

Hey Nic, I tried out your scenario and I successfully saw layout 1 applied to the asset in layout 1 folder, and layout 2 for layout 2 folder. It correctly applied the right simple edit layout per URL. 

Do the 2 sites you are using have 2 different domains? How different are the URLs? If you can give me that I'll try and replicate more closer to your scenario. 

I'm using 5.0.4.1 by the way but I don't think any bugs have gone in recently that would have affected layouts. 


(Nic Hubbard) #3

Do the 2 sites you are using have 2 different domains? How different are the URLs? If you can give me that I'll try and replicate more closer to your scenario. 

I'm using 5.0.4.1 by the way but I don't think any bugs have gone in recently that would have affected layouts. 

 

No, they don't have different domains. But I did a test on one of our other domains and it still was not loading the correct layout. The URLs were similar in one test, but very different in another.

 

We have settings in the Layout Manager which I removed for testing and that made no change. 

 

Our site was created way back on 3.8, so I have no idea if it could be some sort of old issue that is still there...


(Bart Banda) #4

Hmm, not that shouldn't matter. I did apply them as single calendar event layouts as well instead of abstract calendar event layouts, which may be a difference, but I assume you have done the same. Are the events linked into multiple places, other than the 2 folders you have in your screenshot? How many URLs do they have on them? Make check that the layout is applied to all URLs?


(Nic Hubbard) #5

Hmm, not that shouldn't matter. I did apply them as single calendar event layouts as well instead of abstract calendar event layouts, which may be a difference, but I assume you have done the same. Are the events linked into multiple places, other than the 2 folders you have in your screenshot? How many URLs do they have on them? Make check that the layout is applied to all URLs?

 

Yes, applied as Calendar Event Single layout for the Details screen. The test event is only linked in the two folders shown in the screenshot, so it has 2 URLs.

 

How do I check that the layout is applied to all URLs? Wish that the Layouts screen showed inherited layouts, just like Designs or Paint Layouts do. :)


(Bart Banda) #6

 

Yes, applied as Calendar Event Single layout for the Details screen. The test event is only linked in the two folders shown in the screenshot, so it has 2 URLs.

 

How do I check that the layout is applied to all URLs? Wish that the Layouts screen showed inherited layouts, just like Designs or Paint Layouts do. :)

 

Yes, that would be nice :)

 

Interestingly enough, I just re-checked my replication of your issue, and I can now successfully replicate it. I either tested it wrong the first time or something changed... I've submitted a bug report for it here: https://squizmap.squiz.net/matrix/5691


(Nic Hubbard) #7

 

Interestingly enough, I just re-checked my replication of your issue, and I can now successfully replicate it. I either tested it wrong the first time or something changed... I'll submit a bug report for it. 

 

Thanks for the persistence! Can't wait to get this one fixed, really needing the functionality at the moment.


(Bart Banda) #8

See Squizmap idea for updated status on this. From 5.1:

 

The change is in 5.1. This change will make sure Matrix uses current url as base to find the inherited Simple Edit layout.This will potentially affect implementation if Simple Edit layout has been applied to a parent root node URL, but user access the page with a different URL. In that case, no layout will be used. you will have to fix implementation to apply the layout on all URLs that you want user to access.

(Nic Hubbard) #9

Thanks!