Publish article to multiple locations

Author Message

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

Jeremy B.

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 03:06:24
Script start
Timing: Jan 18 2025 03:06:24
Module start 'layout'
Timing: Jan 18 2025 03:06:24
Module start 'content'
Timing: Jan 18 2025 03:06:25
Module end 'content'
Timing: Jan 18 2025 03:06:25
Script end

Main resources:

Total runtime0.7393 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 595.1953152.6250
Module start 'layout' 0.00590.0031 747.820339.4453
Module start 'content' 0.00900.7288 787.2656724.8984
Module end 'content' 0.73780.0015 1,512.164116.1563
Script end 0.7393  1,528.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4353160.0002
Check MTime0.00130.1774160.0001
Mysql Total
Database connection0.00060.080510.0006
Mysqli_queries0.679791.9364770.0088
Looping result0.00070.0928750.0000
Template Total0.714696.720.3573
Template load0.00160.212920.0008
Template processing0.713096.439620.3565
Template load and register function0.00020.022610.0002
states
state_id_array0.00060.082010.0006
state_identifier_array0.00050.068220.0003
Override
Cache load0.00130.1816400.0000
Sytem overhead
Fetch class attribute can translate value0.00060.075560.0001
Fetch class attribute name0.00130.1714100.0001
XML
Image XML parsing0.00160.222860.0003
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00100.1313290.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs