Custom Content Types with Java

Enonic version: 7.2
OS: Ubuntu

Hi,

As I was thinking on a solution after Parameter fo Mixins, I came up to the first line on Custom Content Types: “Custom Content Types can be created using Java or simple xml files - and deployed through applications.”
How can I achieve this?

Regards,
Marco

Creating with Java is generally not recommended, as this enables the content type to change dynamically. However this should be possible if you dig down into the platform deep to use our Java API.

However, this is not what I would suggested earlier. Using some basic templating compile time is a better choice. I would look into using webpack to help you out with this compile time. Maybe it can run things like https://github.com/fiduswriter/xslt-processor NB! Have not testet or qualified this project at all!

1 Like