Overrule MarketPlace Page Layouts with UI Module Layouts, is it possible without copying the MP module?

0
Hi there,   I'm hoping someone can help me out. I've been running into this issue for quite a while and it's beginning to become a bit of a nuisance.   The Problem: Every project we work on has got a few Marketplace Modules. Nothing special, things like Workflow Management, SAML, etc. In our AppAdmin set up we usually create a few tiles that lead to pages where they/we can use the functionality inside the MP Modules. Preferably, we would just like to link to the MP pages and call it a day, since, in 90% of the cases, we don't want to make changes to these pages and use them as is. This would make future Mx updates a breeze, prevent us from having to copy and paste a load of similar pages and logic, and timewise it's the quickest thing to do. Sounds good, right?   Well, no. Because we want 1 change. Our own UI. All of our projects contain a UI Module and we would at least want our UI Module Page Layout to overwrite the Atlas_Default, everywhere. Much in the same way CSS uses cascading, we would love for Page Layouts to cascade as well (like, be able to set a Page Layout as an app's Ultimate Master Page Layout). However, in order to get our new UI Module page layout on these MP pages, Mx best practice tells us we need to copy the necessary MP pages and logic to another module, reconnect all the pages, and often even change some logic that contains Show Page functions. And this is getting old real quick I tell ya. And overkill for such a minor change as wanting your own nav and footer on a page.     Now...this seems like such a basic thing: Have I been overlooking a very basic feature for years or is the copy+paste route really the way to go? Because yeah, I mean... damn, that's something else.   Things I thought of: 1. This would be the dream: Create a dropdown inside the App Settings that would allow you to set an App-wide Master Layout (which would only allow for one 1 main, navbar, and footer section. But this would require a major update from Mendix and if we can't find a solution to this in any other way, then I will propose this as an idea to Mendix for sure.   2. Is there perhaps a javascript that would allow us to change the page layout on page load? I couldn't find one.   3. Or is it perhaps as simple as: when updating an MP module Mendix doesn't override Page Layouts (which would be unlikely, but awesome haha).   4. Add your idea here!   Thank you so much for any replies!   Have a great day,   T.
asked
1 answers
0

I definitely recognize the problem. We always have to bulk replace layouts when updating modules. Point to the existing one (from the updated module) and to the preferred one (our own). Maybe Mendix could offer a way to remember these pairings and a button to repeat all replacements?

answered