Skip to content

Instantly share code, notes, and snippets.

@teppokoivula
Created March 15, 2014 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teppokoivula/9569810 to your computer and use it in GitHub Desktop.
Save teppokoivula/9569810 to your computer and use it in GitHub Desktop.
Another Page Tree Migrator test
{
"pages": [{
"name": "test-page",
"parent_name": "",
"page_template": "basic-page",
"status": 1,
"sort": 7,
"sortfield": "sort",
"data": {
"title": "Test page",
"headline": "",
"summary": "",
"body": "",
"sidebar": "",
"images": [],
"page": [],
"checkbox": 0,
"repeater": []
}
}, {
"name": "1",
"parent_name": "test-page\/",
"page_template": "basic-page",
"status": 1,
"sort": 0,
"sortfield": "sort",
"data": {
"title": "1",
"headline": "",
"summary": "",
"body": "",
"sidebar": "",
"images": [],
"page": [],
"checkbox": 0,
"repeater": []
}
}, {
"name": "2",
"parent_name": "test-page\/",
"page_template": "basic-page",
"status": 1,
"sort": 1,
"sortfield": "sort",
"data": {
"title": "2",
"headline": "",
"summary": "",
"body": "",
"sidebar": "",
"images": [],
"page": [],
"checkbox": 0,
"repeater": []
}
}, {
"name": "3",
"parent_name": "test-page\/",
"page_template": "basic-page",
"status": 1,
"sort": 2,
"sortfield": "sort",
"data": {
"title": "3",
"headline": "",
"summary": "",
"body": "",
"sidebar": "",
"images": [],
"page": [],
"checkbox": 0,
"repeater": []
}
}],
"templates": [{
"template": "basic-page",
"data": {
"useRoles": 0,
"childrenTemplatesID": 0,
"sortfield": "",
"noChildren": "",
"noParents": "",
"childTemplates": [],
"parentTemplates": [],
"allowPageNum": 0,
"allowChangeUser": 0,
"redirectLogin": 0,
"urlSegments": 0,
"https": 0,
"slashUrls": 1,
"altFilename": "",
"guestSearchable": 0,
"pageClass": "",
"pageLabelField": "",
"noGlobal": 0,
"noMove": 0,
"noTrash": 0,
"noSettings": 0,
"noChangeTemplate": 0,
"noShortcut": 0,
"noUnpublish": 0,
"nameContentTab": 0,
"noCacheGetVars": "",
"noCachePostVars": "",
"useCacheForUsers": 0,
"cacheExpire": 0,
"cacheExpirePages": [],
"label": "",
"tags": ""
}
}],
"fields": [{
"name": "title",
"label": "Title",
"description": null,
"template": "basic-page",
"flags": 13,
"type": "FieldtypePageTitle",
"data": {
"required": 1,
"textformatters": ["TextformatterEntities"],
"size": 0,
"maxlength": 255
}
}, {
"name": "headline",
"label": "Headline",
"description": "Use this instead of the Title if a longer headline is needed than what you want to appear in navigation.",
"template": "basic-page",
"flags": 0,
"type": "FieldtypeText",
"data": {
"description": "Use this instead of the Title if a longer headline is needed than what you want to appear in navigation.",
"textformatters": ["TextformatterEntities"],
"collapsed": 2,
"size": 0,
"maxlength": 1024
}
}, {
"name": "summary",
"label": "Summary",
"description": null,
"template": "basic-page",
"flags": 1,
"type": "FieldtypeTextarea",
"data": {
"textformatters": ["TextformatterEntities"],
"inputfieldClass": "InputfieldTextarea",
"collapsed": 2,
"rows": 3
}
}, {
"name": "body",
"label": "Body",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypeTextarea",
"data": {
"inputfieldClass": "InputfieldTinyMCE",
"rows": 10,
"theme_advanced_buttons1": "formatselect,|,bold,italic,|,bullist,numlist,|,link,unlink,|,image,|,code,|,fullscreen",
"theme_advanced_blockformats": "p,h2,h3,h4,blockquote,pre",
"plugins": "inlinepopups,safari,media,paste,fullscreen",
"valid_elements": "@[id|class],a[href|target|name],strong\/b,em\/i,br,img[src|id|class|width|height|alt],ul,ol,li,p[class],h2,h3,h4,blockquote,-p,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],code,pre"
}
}, {
"name": "sidebar",
"label": "Sidebar",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypeTextarea",
"data": {
"inputfieldClass": "InputfieldTinyMCE",
"rows": 5,
"theme_advanced_buttons1": "formatselect,styleselect|,bold,italic,|,bullist,numlist,|,link,unlink,|,image,|,code,|,fullscreen",
"theme_advanced_blockformats": "p,h2,h3,h4,blockquote,pre,code",
"plugins": "inlinepopups,safari,table,media,paste,fullscreen,preelementfix",
"valid_elements": "@[id|class],a[href|target|name],strong\/b,em\/i,br,img[src|id|class|width|height|alt],ul,ol,li,p[class],h2,h3,h4,blockquote,-p,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],pre,code"
}
}, {
"name": "images",
"label": "Images",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypeImage",
"data": {
"extensions": "gif jpg jpeg png",
"entityEncode": 1,
"adminThumbs": 1,
"inputfieldClass": "InputfieldImage",
"maxFiles": 0,
"descriptionRows": 1,
"fileSchema": 2
}
}, {
"name": "page",
"label": "",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypePage",
"data": {
"parent_id": "home",
"inputfield": "InputfieldAsmSelect"
}
}, {
"name": "checkbox",
"label": "",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypeCheckbox"
}, {
"name": "repeater",
"label": "",
"description": null,
"template": "basic-page",
"flags": 0,
"type": "FieldtypeRepeater",
"data": {
"parent_id": "for-field-132",
"template_id": "repeater_repeater"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment