{
	"ns": "webr.ns",
	"propertyRules": "rules.xpd",
	"idProperty": "__cid__",
	"defaultLanguage": "en",
	"labelWidth": 160,
	"iconPath": "/system/images/icons/16x16",
	"properties": {
		"title": {
			"title": "title",
			"type": "i18n",
			"dbType": "varchar(64)",
			"length": 64,
			"isTitle": true,
			"groups": [
				"generel"
			]
		},
		"seq": {
			"title": "sequence",
			"type": "hidden",
			"dbType": "integer",
			"length": 5,
			"groups": [
				"generel"
			]
		},
		"webactive": {
			"type": "boolean",
			"dbType": "char(5)",
			"length": 5,
			"value": true,
			"groups": [
				"lifecycle"
			],
			"title": "property_webactive_title",
			"boxlabel": "property_webactive_boxlabel"
		},
		"pubdate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"format": "Y-m-d",
			"allowedchoice": true,
			"groups": [
				"lifecycle"
			],
			"title": "property_pubdate_title",
			"placeholder": "property_pubdate_placeholder"
		},
		"expiredate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"allowedchoice": true,
			"mindatebind": "pubdate",
			"format": "Y-m-d",
			"groups": [
				"lifecycle"
			],
			"title": "property_expiredate_title",
			"placeholder": "property_expiredate_placeholder"
		},
		"show_icon": {
			"type": "boolean",
			"dbType": "char(5)",
			"length": 5,
			"value": false,
			"groups": [
				"layout"
			],
			"title": "property_showicon_title",
			"sequence": 1
		},
		"icon": {
			"type": "picker",
			"title": "property_icon_title",
			"dbType": "varchar(64)",
			"length": 64,
			"enum": "navicon",
			"value": "none",
			"preprocess": [
				{
					"regexp": "^",
					"replace": "webr~navicon~"
				}
			],
			"postprocess": [
				{
					"search": "webr~navicon~",
					"replace": ""
				}
			],
			"groups": [
				"layout"
			],
			"sequence": 2
		},
		"design": {
			"type": "picker",
			"title": "property_design_title",
			"dbType": "varchar(64)",
			"length": 64,
			"enum": "navbuttondesign",
			"value": "none",
			"preprocess": [
				{
					"regexp": "^",
					"replace": "webr~navbuttondesign~"
				}
			],
			"postprocess": [
				{
					"search": "webr~navbuttondesign~",
					"replace": ""
				}
			],
			"groups": [
				"layout"
			],
			"sequence": 3
		}
	},
	"collections": {
		"root": {
			"id": 1,
			"title": "collection_root_title",
			"allowedchilds": [
				2,
				3,
				4,
				5
			]
		},
		"media": {
			"id": 2,
			"allowedparents": [
				1
			],
			"allowedchilds": [
				3,
				4,
				5
			],
			"title": "collection_media_title",
			"icon": "monitor2.png"
		},
		"menugroup": {
			"id": 3,
			"allowedparents": [
				1,
				2,
				3,
				4,
				5
			],
			"allowedchilds": [
				3,
				4,
				5
			],
			"title": "collection_menugroup_title"
		},
		"page": {
			"id": 4,
			"allowedparents": [
				1,
				2,
				3,
				4,
				5
			],
			"allowedchilds": [
				3,
				4,
				5
			],
			"title": "collection_page_title",
			"icon": "document.png",
			"dmd": "webshop.dmd",
			"entity": "WSHPAGET00",
			"propertyFieldName": "PLGPROP",
			"uiName": "portfolio",
			"titleColumns": "PLGPROP_TITLE",
			"properties": {
				"pagetoken": {
					"databasebind": "PAGPAGTKN",
					"title": "page token",
					"type": "integer",
					"dbType": "integer",
					"length": 5,
					"isKey": true,
					"groups": [
						"generel"
					]
				}
			}
		},
		"directlink": {
			"id": 5,
			"allowedparents": [
				1,
				2,
				3,
				4,
				5
			],
			"allowedchilds": [
				3,
				4,
				5
			],
			"title": "collection_directlink_title",
			"icon": "link.png",
			"properties": {
				"url": {
					"title": "url",
					"type": "varchar",
					"dbType": "varchar(1024)",
					"length": 1024,
					"groups": [
						"generel"
					]
				}
			}
		},
		"catalog": {
			"id": 6,
			"allowedparents": [
				1,
				2,
				3
			],
			"allowedchilds": [],
			"title": "collection_catalog_title",
			"icon": "document.png",
			"dmd": "webshop.dmd",
			"entity": "WSHFLDET00",
			"propertyFieldName": "FLDPROP",
			"uiName": "portfolio",
			"titleColumns": "FLDPROP_TITLE",
			"xpdbind": "properties(1, 2, 3)",
			"properties": {
				"catalogtoken": {
					"databasebind": "FLDFLDTKN",
					"title": "catalog token",
					"type": "integer",
					"isKey": true
				}
			}
		}
	},
	"groups": {
		"generel": {
			"title": "group_generel_title",
			"index": 100,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 100
					}
				},
				"folderorganizer": {
					"layout": {
						"sequence": 100
					}
				},
				"menuorganizer": {
					"layout": {
						"sequence": 100
					}
				}
			}
		},
		"layout": {
			"title": "group_layout_title",
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 200
					}
				},
				"folderorganizer": {
					"layout": {
						"sequence": 200
					}
				},
				"menuorganizer": {
					"layout": {
						"sequence": 200
					}
				}
			}
		},
		"lifecycle": {
			"title": "group_lifecycle_title",
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 300,
						"collapsed": true
					}
				},
				"folderorganizer": {
					"layout": {
						"sequence": 300,
						"collapsed": true
					}
				},
				"menuorganizer": {
					"layout": {
						"sequence": 300
					}
				}
			}
		}
	},
	"environments": {
		"editor": {
			"title": "environment_editor_title"
		},
		"folderorganizer": {
			"title": "environment_folderorganizer_title"
		},
		"folderWindow": {
			"title": "environment_folderwindow_title"
		},
		"menuorganizer": {
			"title": "environment_menuorganizer_title"
		}
	},
	"layout": {
		"editor": {
			"__default__": {
				"width": 600,
				"minWidth": 300
			},
			"pagetoken": {
				"sequence": 100
			},
			"title": {
				"sequence": 200
			},
			"seq": {
				"sequence": 300,
				"width": 300
			},
			"url": {
				"sequence": 400
			},
			"pubdate": {
				"sequence": 50
			},
			"expiredate": {
				"sequence": 60
			},
			"webactive": {
				"sequence": 70
			}
		},
		"folderorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		},
		"menuorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			},
			"title": {
				"sequence": 10
			},
			"url": {
				"sequence": 20
			},
			"pagetoken": {
				"hidden": true
			},
			"pubdate": {
				"sequence": 50
			},
			"expiredate": {
				"sequence": 60
			},
			"webactive": {
				"sequence": 70
			}
		}
	},
	"language": {
		"da": {
			"text": {
				"environment_editor_title": "Editor",
				"environment_folderorganizer_title": "Folderorganizer miljø",
				"environment_menuorganizer_title": "Menu Organizer",
				"group_generel_title": "Generelt",
				"group_lifecycle_title": "Publikation",
				"group_layout_title": "Layout",
				"collection_root_title": "Udgangspunkt",
				"collection_media_title": "Media",
				"collection_menugroup_title": "Menugruppe",
				"collection_page_title": "Sider",
				"collection_directlink_title": "Direkte link",
				"property_pubdate_title": "Publikationsdato",
				"property_pubdate_placeholder": "Angives ingen, publiceres siden øjeblikkeligt",
				"property_expiredate_title": "Udløbsdato",
				"property_expiredate_placeholder": "Valgfri udløbsdato for publiceringen",
				"property_webactive_title": "Publiceret",
				"property_webactive_boxlabel": "Siden publiceres på hjemmesiden jf. regler og datoer",
				"property_icon_title": "Ikon",
				"property_showicon_title": "Vis ikon",
				"property_design_title": "Design",
				"title": "Titel",
				"url": "Url",
				"page token": "Side ID"
			}
		},
		"en": {
			"text": {
				"environment_editor_title": "Editor",
				"environment_folderorganizer_title": "Folderorganizer environment",
				"environment_menuorganizer_title": "Menu Organizer",
				"group_generel_title": "Generel",
				"group_lifecycle_title": "Publication",
				"group_layout_title": "Layout",
				"collection_root_title": "Root",
				"collection_media_title": "Media",
				"collection_menugroup_title": "Menu Group",
				"collection_page_title": "Pages",
				"collection_directlink_title": "Direct Link",
				"property_pubdate_title": "Publication Date",
				"property_pubdate_placeholder": "If none, the page is published immediately",
				"property_expiredate_title": "Expiration date",
				"property_expiredate_placeholder": "Optional expiration date for the publication",
				"property_webactive_title": "Published",
				"property_webactive_boxlabel": "The page is published on the site according to rules and dates",
				"property_icon_title": "Icon",
				"property_showicon_title": "Show icon",
				"property_design_title": "Design",
				"title": "Title",
				"url": "Url",
				"page token": "Page ID"
			}
		}
	}
}
