Forums / Developer / Publish article to multiple locations
Jeremy B.
Wednesday 08 July 2009 11:49:42 am
Hi all,
I would like to know if there is a way to publish a new article to multiple locations, without using Object Relation.
Have someone did this before ?
Thanks for your answer :)
Bård Farstad
Wednesday 08 July 2009 11:54:51 am
Hi Jeremy,
when you are using the eZ Webin toolbar (front-end editing) there is an icon called "add location". This will let you publish the article in multiple locations. You can publish it in as many locations as you want.
You can also do this in the administration interface when viewing an object. If you enable locations (by clicking on the tab in the top middle section of the screen) you can manage the locations an article (or any object) is published to.
Hope this helps,
-bård
Documentation: http://ez.no/doc
Wednesday 08 July 2009 3:18:37 pm
Great !
Thanks for your time :)
Jean-Luc Nguyen
Thursday 09 July 2009 12:51:31 am
Hello,
I also wrote a workflow extension that allows to add automatically multiple locations for publish objects:
http://projects.ez.no/createmultiplelocationruleevent
http://www.acidre.com
nehal shah
Wednesday 19 January 2011 4:31:46 am
Hello guyz,
I want to publish article without using admin interface.Is it possible? It can be possible through webservice or not?. If anyone have an idea?
Thanx in advance.
Gaetano Giunta
Wednesday 19 January 2011 6:19:20 am
To create an object without passing by the admin interface, you can use the php function eZContentFunctions::createAndPublishObject
To make it accessible as webservice:
- install the ggwebservices extension
- put in the xmlrpc folder of an extension declared as 'xmlrpc provider' the following initialize.php file:
$server->registerFunction( 'ezp.publishcontent', array( 'params' => 'struct' ), 'integer', 'Creates an object' ); function ezp_publishcontent( $params ) { $obj = eZContentFunctions::createAndPublishObject( $params ); if ( is_object( $obj ) ) { return $obj->attribute( 'id' ); } return 0; }
- give your remote user access rights to execute that webservice
and it should be ok
Principal Consultant International Business Member of the Community Project Board
Jitesh Rana
Thursday 03 March 2011 3:11:45 am
Hello Gaetano Giunta,
Can you please give detailed explanation regarding 2nd and 3rd step?
It will give us more clarity.
Thank you