\v09\custom-mixins.xml in 14.3.2

Hi all,

We are working on a headless version of 14.2.2 and wanted to upgrade to 14.3.2. The changes for configuration in BR isn’t that hard. However, with upgrading from v0.9 to v1.0 of the resourceapi model the mixins to manipulate the output don’t work anymore. Also see documentation https://documentation.bloomreach.com/14/library/concepts/page-model-api/customization.html.

In 14.2.2 the mixin configuration is placed here myproject\site\components\src\main\resources\META-INF\hst-assembly\overrides\addon\org\hippoecm\hst\pagemodelapi\v09\custom-mixins.xml
so my assumption was that I could place the custom-mixins.xml in a “v10” folder.

Unfortunately that doesn’t work and I couldn’t find the updated documentation for v10.

update:

in my case I wanted to change the output of components to dispose the counter. For instance the “main-1” of example below should transform to “main”:

u5ad780d9dc0e47668f35633eccf1241b: {
id: “r20_r1”,
links: {
self: {
href: “http://localhost:8080/site/voorbeelden/resourceapi/dekkingskaart?_hn:type=component- rendering&_hn:ref=r20_r1&check_businesslogic=true”,
type: “external”
}
},
meta: {
params: { }
},
name: “main-1”,
type: “component”,
componentClass: “org.hippoecm.hst.core.component.GenericHstComponent”,
children: [
{
$ref: “/page/u989f728ec5ac44148e49dee18073cb49”
}
]
}

so, moved my “custom-mixins.xml” as described in my first post, but that wasn’t enough. Also needed to update the content from

<entry key="org.hippoecm.hst.pagemodelapi.v09.core.model.ComponentWindowModel" value="nl.unive.mixin.ComponentWindowModelMixin"/>

to

<entry key="org.hippoecm.hst.pagemodelapi.v10.core.model.ComponentWindowModel" value="nl.unive.mixin.ComponentWindowModelMixin"/>

note the “v09” to “v10”

This last part solved it for me.