How-to trigger a workflow using the Public API: compariso...
Versions Compared
Old Version 5
changes.mady.by.user Bertrand Dunogier
Saved on May 23, 2013
compared with
New Version 6
changes.mady.by.user Bertrand Dunogier
Saved on May 23, 2013
- Previous Change: Difference between versions 4 and 5
- Next Change: Difference between versions 6 and 7
- View Page History
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
| Code Block | ||||
|---|---|---|---|---|
|
||||
$contentType = $contentTypeService->loadContentTypeByIdentifier( $contentTypeIdentifier ); $contentCreateStruct = $contentService->newContentCreateStruct( $contentType, 'eng-GB' ); $contentCreateStruct->setField( 'title', $title ); $contentCreateStruct->setField( 'intro', $intro ); $contentCreateStruct->setField( 'body', $body ); $locationCreateStruct = $locationService->newLocationCreateStruct( $parentLocationId ); // create a draft using the content and location create struct and publish it $draft = $contentService->createContent( $contentCreateStruct, array( $locationCreateStruct ) ); |
Publish a Public API draft using the Legacy Kernel
...
Comments
Add a comment