Need Guidance on Implementing Dynamic HTML Snippets/Container Based on URL in Mendix

0
Hello Mendix Community,   We are currently working on enhancing our Mendix application and would appreciate your insights on a specific integration challenge. We aim to incorporate a new label into our existing Mendix application. Specifically, we want to implement a feature where a Microflow dynamically displays the appropriate HTML snippet/Container based on the URL accessed by the user.   Dynamic Content Display: The application should display content relevant to the URL visited:   https://domain1.nl/ - it should show content specific to label1 https://domain2.nl/ - it should show content specific to label2   What is the best practice for detecting and handling different URLs within a Mendix application? How can we set up a Microflow to determine which HTML snippet to display based on the URL? Are there any existing Mendix modules or patterns that can facilitate this type of dynamic content management? We are keen on ensuring that our implementation is both efficient and scalable. If there are any recommended approaches or resources, your guidance would be greatly appreciated.
asked
2 answers
0

Hi Fouad,

To show different containers based on URL , best way to handle in mendix is Deeplink module.

please go through this doc to know more about how to use this.

answered
0

You might be ok with page-urls: assign a value to a page's property 'url'. This value can also contain an id of an object.You can also add html-elements to a page containing an anchor (see my answer in this question)

The above result in the option for you to handout urls like "mydomain.com/p/invoicespage/id/invoice1234#overview"

 

If that does not give you all you need, then there is the option to assign an url to a microflow like described here. This very likely gets you what you need.

 

NB. the Deeplink module is deprecated as result of these options.

answered