-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow simpler yml for content creation/update; fix docs for obj state…
…s dsl
- Loading branch information
gggeek
committed
Oct 20, 2016
1 parent
d599125
commit 612071c
Showing
6 changed files
with
68 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,37 +15,37 @@ | |
owner: xxx # user id, login or email if unique; Optional, set the content owner | ||
modification_date: zzz # Optional, set content modification date (for formats, see: http://php.net/manual/en/datetime.formats.php) | ||
attributes: | ||
- attribute1: value1 | ||
- attribute2: value2 | ||
- attribute3: | | ||
value can be | ||
on multiple lines | ||
and new lines are preserved on parsing | ||
- attribute4: > | ||
value on multiple | ||
lines, but new line is not preserved on parsing | ||
attribute1: value1 | ||
attribute2: value2 | ||
attribute3: | | ||
value can be | ||
on multiple lines | ||
and new lines are preserved on parsing | ||
attribute4: > | ||
value on multiple | ||
lines, but new line is not preserved on parsing | ||
# ezimage/ezbinaryfile file attribute example | ||
- attribute5: | ||
attribute5: | ||
path: 'path/to/image' # Relative path from MigrationsVersions/images/ or MigrationsVersions/files/ | ||
alt_text: xyz # Optional, only used for images | ||
filename: abc # Optional, taken from the actual file if not specified | ||
mime_type: def # Optional. For ezbinaryfile only. If not specified, the actual file is analyzed using the php function mime_content_type() | ||
# ezimage/ezbinaryfile file attribute example, using simplified form | ||
- attribute5b: 'path/to/image' | ||
attribute5b: 'path/to/image' | ||
# ezxmltext, showing an example of using references | ||
- attribute6: '<section><paragraph><embed view="embed" size="medium" object_id="[reference:example_reference]" /></paragraph></section>' | ||
attribute6: '<section><paragraph><embed view="embed" size="medium" object_id="[reference:example_reference]" /></paragraph></section>' | ||
# Adding values to an ezauthor field | ||
- attribute7: | ||
- | ||
name: Test Author | ||
email: [email protected] | ||
- | ||
name: Another Author | ||
email: [email protected] | ||
attribute7: | ||
- | ||
name: Test Author | ||
email: [email protected] | ||
- | ||
name: Another Author | ||
email: [email protected] | ||
# Adding values to an ezobjectrelation field | ||
- attribute8: x # content id or string: reference:xxx | ||
attribute8: x # content id or string: reference:xxx | ||
# Adding values to an ezobjectrelationlist field | ||
- ezobjectrelationlist: [ x, reference:xxx ] # array of content ids or reference strings | ||
ezobjectrelationlist: [ x, reference:xxx ] # array of content ids or reference strings | ||
# Optionally assign object states to the content | ||
object_states: | ||
- xxx # int|string an object state id or identifier. If the identifier is not unique, use obj-state-gorup-identifier/obj-state-identifier | ||
|
@@ -75,8 +75,8 @@ | |
publication_date: zzz # Optional, set content modification date (for formats, see: http://php.net/manual/en/datetime.formats.php) | ||
new_remote_id: xxx # string Optional set a new RemoteId | ||
attributes: # the list of attribute identifier value pairs. For the format to use, see above | ||
- attribute1: value1 | ||
- attribute2: value2 | ||
attribute1: value1 | ||
attribute2: value2 | ||
# Optionally assign object states to the content | ||
object_states: | ||
- xxx # int|string an object state id or didentifier. For the format to use, see above | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters