Jahia 7.3 Legacy

My component is not usable in contribute mode

Question

Here is my definition. It works fine on edit mode but I'm not able to use it in contribute mode.; this component not listed in the components list to use in contribute mode (to a dedicated area). What's wrong with it?

[jnt:myContent] > jnt:content, jmix:basicContent, mix:title
 - text (string)

and the related view jnt_myContent/html/myContent.jsp

<h2>${currentNode.properties['jcr:title'].string}</h2>
${currentNode.properties['text'].string}

 

Answer

To use a component on contribute mode, you need to inherit the  jmix:editorialContent mixin, so your definition will be 

[jnt:myContent] > jnt:content, jmix:basicContent, mix:title, jmix:editorialContent
 - text (string)