Multi tenant administration layout and placeholder errors

0
After adding the Multi tenant administration module to a new project created with Mx 7.9 there are 20 errors all related to placeholders and layouts that no longer exist. How should we go about resolving these? Thanks EDIT: as a workaround based on Austin's answer: From the properties of the pages that give an error,  choose the corresponding layout from App Store modules - Atlas_UI_Resources - _Layouts. Choose PopupLayout  for the pages that are looking for NavigaionLayouts.PopupLayout. Choose a layout from the Responsive folder for pages looking for NavigationLayouts.Sidebar_Full_Responsive. On each page, drag the topmost dataview from the  Content placeholder (shown in red) to the Main placeholder.
asked
2 answers
1

Hi Marcos,

 

I'm not familiar with the particular errors you are getting, but one thing you could try is to double click the error and the modeler will take you to the page that is causing the error. From there you can change the layout of the page that to something that's in your Navigation Layouts module. 

Hopefully this helps. If not, can you show some screenshots of the errors?

 

 

Edit: I downloaded the same modeler version and created a project with this module. The errors are coming from a navigation layout that doesn't exist anymore. To fix this, double click each error (which will bring up the page), and right click > properties > and change the navigation layout. Referring to my original answer, you will have layouts to choose from the Navigation Layout module. One thing to note, is if you change the layout, it may wipe out everything on the screen. Try and copy and paste the main contents of the page, change the layout, and then paste it back. 

 

 

here is a screenshot of the properties menu for the page. 

answered
2

Someone in Mendix thought it was a really good idea to rename the layout placeholder from "Content" to "Main", without consideration for existing apps. This means that anything that refers to the placeholder by the name "Content" will fail.

You can fix this relatively easily:

For each page with an error:

  1. open the relevant layout, e.g. NavigationLayouts.PopupLayout.
  2. Rename the Main content holder to "Content".
  3. You will get a pop-up listing where the placeholder is already in use.
  4. Click OK. This will update all of the usages with the new name.
  5. The pages with the error (for that layout) will now be OK. You can rename the content placeholder back to "Main".

(Repeat for each layout that is used by one of the pages with the error - I only had to do it for PopupLayout and Sidebar_Full_Responsive).

answered