Paint layouts inheriting across different globes


(Tom Stringer) #1

By default, we use separate site globes to handle design elements that require URLs (ie - javascript, CSS, Parse files etc).

 

These are setup using an extension of the primary site URL:

  • Primary site URL: www.site.com
  • Design URL: www.site.com/designs

The assets in the Designs globe don't require paint layouts, in fact it's best if they don't have any, but just recently we've noticed that these assets are inheriting a paint layout.

 

It took a little while to figure out why this was happening, but it appears that any sub-sites that share the same (sub)domain as the primary site automatically inherit its paint layout. In other words, the site at www.site.com/designs will automatically inherit the paint layout applied to www.site.com.

 

To make things more frustrating, there's no way to delete that paint layout from the sub-site once it's been inherited. All we can do is create a blank paint layout and apply it as an override - which is pretty clumsy.

 

Is this a bug, or expected behaviour? If the latter, is there a specific reason for it? And finally, is there a more elegant way of handling this?

 

 


(Chiranjivi Upreti) #2

Is this a bug, or expected behaviour? If the latter, is there a specific reason for it? And finally, is there a more elegant way of handling this?

 

Yes this an expected behaviour. Design and Layouts are actually applied to the URL rather than the assets (like Sites), so the design/layouts are automatically inherited by assets that has url based the url that has design/layout applied.

 

Not quite sure how this is usually handled in implementation (or whats the best practice regarding this), but one way I can think of is overriding the sub-url with an empty (default) layout.


(Tom Stringer) #3

Thanks Chiranjivi

 

Yeah, we can use a blank override design - it just seems a bit clumsy and was hoping there might be a more elegant way to handle it.


#4

Is your designs globe and site globe separate? We have had different implementations over the years however if the site assets are not under each other it should not apply those layouts or designs.

When we have had that problem in the past the overuse layout has been a fix.


But now you have me thinking and I may have to re check!


(Tom Stringer) #5

Hi Fuzzi

 

Yep, separate globes (siblings, not parent -> child), which is why I was a little surprised when we noticed it. 


(Bart Banda) #6

You are probably better off specifically applying a blank plaint layout instead of just clearing it because next time someone applies a new paint layout on the site asset, or even just commits any change on it, your sites that sure the same main domain will inherit that paint layout again due to the URL inheritance.