Skip to content

Instantly share code, notes, and snippets.

@sepiariver
Last active December 21, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sepiariver/1563411bfc3d0281e19f0df07b591dd7 to your computer and use it in GitHub Desktop.
Save sepiariver/1563411bfc3d0281e19f0df07b591dd7 to your computer and use it in GitHub Desktop.
Example of JSON config file consumed by sample_json_export.php script.
[
{
"class": "modSnippet",
"where": [
{
"name:=": "SomeCustomSnippet"
}
],
"toWhere": "create"
},
{
"class": "modChunk",
"where": [
{
"name:=": "blog_item.tpl"
}
],
"toWhere": "create"
},
{
"class": "modTemplate",
"where": [
{
"id": 1
}
],
"toWhere": "update"
},
{
"class": "modResource",
"where": [
{ "pagetitle:=": "Resource Pagetitle" }
,{ "deleted:=": 0 }
],
"toWhere": [
{
"id:=": 10
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment