Configuration Publishing

thugsb's Avatar

thugsb

15 Nov, 2012 04:40 PM

Is it possible to edit the destinations that configurations are published to via web services/wsdl?
I.e. edit the "Configuration Publishing" on this pageL: http://d.pr/i/jnya
That information doesn't seem to appear when reading the content type, as this is all I get:

[id] => c62c7ad57f00000101f92de5e2e01aa4
[name] => Level 2 Page
[parentContainerId] => 174c394c7f0000021312656b8473b069
[parentContainerPath] => www-about
[path] => www-about/Level 2 Page
[siteId] => c621c0c77f00000101f92de57337600b
[siteName] => www-about
[pageConfigurationSetId] => 2e0638b77f000001018985bacfa1ebd4
[pageConfigurationSetPath] => www_config:www-about/Level 2 Page
[metadataSetId] => 98afbe897f0000020053f8eb99e0ec9d
[metadataSetPath] => www_config:Default Sets/Level 2 Content Page
[dataDefinitionId] => 3164085d7f0000020053f8eb7af69ddb
[dataDefinitionPath] => www_config:example.edu/Level 2 Content Page
[contentTypePageConfigurations] => stdClass Object
    (
    )

If it's not possible, is this likely to be added?

  1. 1 Posted by Ryan Griffith on 15 Nov, 2012 09:08 PM

    Ryan Griffith's Avatar

    Hi,

    Is it possible to edit the destinations that configurations are published to via web services/wsdl?

    It is possible to add page configurations to the Content Type via Web Services. You are seeing an empty object in the response from your read operation due to this known defect.

    There is a workaround; however, to get this information. After calling the read operation, use the __getLastResponse() method to output the raw response. You would echo this raw response like so:

    echo $client->__getLastResponse();
    

    Note: you must have trace set to 1 when creating your SOAP client to access this response.

    That being said, the edit operation works just fine, you would use something like the following structure (in PHP):

    $response = $client->edit(array(
        'authentication' => array(
            'username' => 'admin',
            'password' => 'admin'
        ),
        'asset' => array(
            'contentType' => array(
                'id' => 'b548ada70a00016c6a59d8da34651523',
                'parentContainerId' => '35579a2a7f0000010020a23942810a06',
                'name' => 'Standard Page',
                'siteName' => 'example.com',
                'pageConfigurationSetId' => 'b5474c910a00016c6a59d8da7e6099f5',
                'metadataSetId' => 'b668909d0a00016c6a59d8daa2092996',
                'contentTypePageConfigurations' => array(
                    'contentTypePageConfiguration' => array(
                        array(
                            'pageConfigurationId' => 'd1776d360a00016c5e4c03d48ab76feb',
                            'publishMode' => 'selected-destinations',
                            'destinations' => array(
                                array('type' => 'destination', 'id' => '44a8d0450a0001ed002b661b6bdf9a49')
                            )
                        ),
                    )
                )
            )
        )    
    ));
    

    Note: The pageConfigurationId would be the individual configuration (ie HTML or XML).

    Please let me know if you have any questions.

    Thanks

  2. 2 Posted by thugsb on 19 Nov, 2012 02:17 PM

    thugsb's Avatar

    Perfect, thanks!

  3. thugsb closed this discussion on 19 Nov, 2012 02:19 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac