cancel
Showing results for 
Search instead for 
Did you mean: 

Edit XML file with ECM Form via URL on 2.9B

vincentd
Champ in-the-making
Champ in-the-making
Hi all,

I installed Alfresco version 2.9B

I'm trying without success to edit an XML file using an ECM form via url.

First, I was using WCM forms to do the job, using url like alfresco/c/ui/editwebcontent?sandbox=…&webproject=…
But for several reasons, I need to use ECM space to store my xml files instead of WCM.

What type of url can I use to edit my xml file using the associated ECM form ?

Thanks in advance for your help.
2 REPLIES 2

janv
Employee
Employee
For WCM forms, commands exist to EditWebContent and CreateWebContent which execute the corresponding WCM wizards via a URL. For ECM forms, you would need to implement new commands to EditContent and CreateContent to execute the corresponding ECM wizards.

Refer to:
http://dev.alfresco.com/resource/docs/java/web-client/index.html?org/alfresco/web/app/servlet/comman...

Regards,
Jan

jcobb
Champ in-the-making
Champ in-the-making
I was looking for a similar function - to display an ECM form for creation / edit of XML document without the rest of the Alfresco web client. Is there an easier / better way to do this? I want to leverage the alfresco / chiba / orbeon forms processing, but need to display a form to clients without the alfresco ui.

I looked at the link to the WCM command, managed to find the java source code for this in SVN. But… I've no java experience… I've made a start on customising Alfresco with freemarker templates. I've created a webscript. I'm about to embark on some custom jbpm workflow. But hacking the java source is too scary.   :shock:

However the source for WCM to allow calling the wizard from url looks simple (short) enough.

1. Anyone out there prepared to add the editwebcontent and createwebcontent commands for ECM too?
2. Is there a way I can call the wizard from a webscript? This way I'd be comfortable to try…

Generally it would be great to get more of the WCM funcionality in ECM. Such as

a) xsl-fo rendition of xml to pdf - would be really useful to have an xml+xsl-fo transform to pdf
b) Dependencies - I'm storing DITA xml in alfresco, and the dependencies concept is very relevent.

just two of the features I've searched for, and found there's something in WCM but not ECM   Smiley Sad

James Cobb