draft and publish

How to implement draft and publish functionality in Mendix
1 answers

Depending on your use case, you could use an enumeration for a status attribute. Where an editor can change the status from draft to published. In a 'reader' view, you could use xpath, constraints or conditional visibility to only display the published items.


If you want to use some sort of versioning, you could e.g. look into two entities where you can store non published versions and allow the editor to select one as published. You could then copy the content to the Published entity.


And there would be several other solutions, but these two are simple to implement.