Monday 12 March 2012 - http://projects.ez.no/silver_post
silver.post is an eZ extension that uses the "ezprestapiprovider" extension and adds the functionality to publish new articles to eZ Publish via the REST interface.
Wednesday 28 March 2012 1:05:05 pm
The ezcontentstaging extension does in fact already allow content creation via ajax calls - it is not only useful in a staging context but for any ajax-based interface.
I was in fact thinking about splitting ezcontenstaging in2 parts: client and server, with the server being the part that is useful for your usecase.
And there is a lot of things to do there to get the extension in perfect shape.
So all collaboration is welcome.
http://projects.ez.no/ezcontentstaging
Thursday 25 April 2013 3:07:53 pm
Hi,
Thanks for this great extension.
I tried implementing this extension, but when I call REST API URL from cURL, Object is created in DB for the passed data but related Node is not created.
In other words, My articles are saved as DRAFT.And they do not get published.
Can you please help me on this?
My installation is "Community Project 2012.6"
Thanks in advance.
Kinjalgiri Goswami
Thursday 25 April 2013 3:35:28 pm
Hi Kinjalgiri,
do you have set up a workflow which requires an approval of the documents created by the extension? This might explain why the objects were stored as a draft.
If you just use the module for creating objects i would recommend to use the new REST interface of eZ publish. It´s much more powerful.
We have developed this extensions before the REST interface has been implemented by eZ. It was made for the iphone app available in the App store.
best
Frank
Thursday 25 April 2013 4:05:44 pm
Hi Frank,
Thanks you for the quick reply.
I had not set up any workflow which requires an approval for the items created by extensions.
Steps I follow:
1). Making a fresh installation of Community Project 2012.6.
2). Create a custom class for making post.
3). Add customized silver.post.(then Autoload,Cache Clean)
4).Call the the REST URL to post in eZ Publish.
I will implement suggestion given by you for new REST interface of eZ publish.
Thanks again.
Kinjalgiri Goswami
Saturday 27 April 2013 8:35:25 am
Hi Frank,
I achieved adding articles successfully with your extension itself. I got issues previously because I didn't include following lines of code for Class 'rest_controller.php' necessary for publishing article.
<code>
public function doAddChildNode() {
// needed for Publishing, index.php:336
$moduleRepositories = eZModule::activeModuleRepositories();
eZModule::setGlobalPathList( $moduleRepositories );
//rest of code logic here
}
</code>
Thanks again for this great extension.
Kinjalgiri Goswami
Monday 12 March 2012 12:05:03 pm
Saturday 27 April 2013 8:35:27 am