Show html in mendix?

1
Hello everyone, I am trying to open an html from a button. I was successfull in doing that by pasting my html in themes folder and provide the url to the button.But when I changed the html content it does not get automatically refresh and I had to rerun the project locally.Is there any other folder present in which I don’t have to rerun the app to see the changes or how to force rerun?   Thanks in advance Kaushal Sharma
asked
2 answers
0

Hi Kaushal!

 

The best way to do it is having this outside the Mendix folders or hosted on an external service.

 

You can also store the html in a string attribute of an entity and then render it on a page. Set the access rules such that only an administrator can update this html.

 

Create a page where the admin can write and update the html in a text area.

 

Hope this helps.

answered
2

You will find it easier to create and manage any HTML content in your application directly in Studio Pro.

If the content is essentially static, then you can use the HTML Snippet widget to add custom HTML to a Mendx page.
https://docs.mendix.com/appstore/widgets/html-javascript-snippet/

If you need something a bit more dynamic, then you can use the HTML Element widget.
https://docs.mendix.com/appstore/widgets/htmlelement/

Good luck!

answered