cancel
Showing results for 
Search instead for 
Did you mean: 

create-content with HTML mimetype

jcantonio
Champ in-the-making
Champ in-the-making
Hello,

I followed the great tutorial Working With Custom Content Types in Alfresco from Jeff Pottsfrom,

And I added the create menu item White Paper.


<config evaluator="string-compare" condition="DocumentLibrary">
       <create-content>
            <content mimetype="text/html" label="White paper" itemid="sc:whitepaper">
        </create-content>   
</config>


Its works fine.

But via this menu item, the content created is always set to text/plain instead of the text/html.

Does anyone know what should be done to set the mimetype to text/html?

Kind regards,

Jean-Claude
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
try this


<content id="html" label="White Paper" type="pagelink" index="40">
            <param name="page">create-content?destination={nodeRef}&amp;itemId=sc:whitepaper&amp;mimeType=text/html</param>
         </content>

Thanks Mits, I just made the modification , restarted the webapp, and created a new white paper content but the mime type is still plain text.
fyi the url was
http://localhost:8081/share/page/create-content?destination=workspace://SpacesStore/ba145076-07ef-41...

jcantonio
Champ in-the-making
Champ in-the-making
For now I will use the node template (create an HTML content then set the type) as a work around.