{
	"ns": "webr.ns",
	"propertyRules": "rules.xpd",
	"idProperty": "__cid__",
	"defaultLanguage": "en",
	"labelWidth": 160,
	"iconPath": "/system/images/icons/16x16",
	"properties": {
		"metatitle": {
			"type": "varchar",
			"dbType": "varchar(200)",
			"i18n": true,
			"length": 200,
			"title": "property_metatitle_title",
			"groups": [
				"meta"
			],
			"characterCount": {
				"warningThreshold": 1,
				"length": 66,
				"lowerThreshold": 29
			},
			"borrow": [
				{
					"from": "header",
					"trigger": "blur"
				}
			],
			"sanitizeFn": "ip2.sliceString",
			"sanitizeArgs": [
				0,
				200
			],
			"enforceCaretPosition": true
		},
		"metadescription": {
			"type": "textarea",
			"dbType": "varchar(512)",
			"i18n": true,
			"length": 512,
			"title": "property_metadescription_title",
			"groups": [
				"meta"
			],
			"borrow": [
				{
					"from": "description",
					"trigger": "blur"
				}
			],
			"characterCount": {
				"warningThreshold": 1,
				"length": 156
			}
		},
		"metakeywords": {
			"type": "varchar",
			"dbType": "varchar(256)",
			"i18n": true,
			"length": 512,
			"groups": [
				"meta"
			],
			"title": "property_metakeywords_title",
			"placeholder": "property_metakeywords_placeholder"
		},
		"keywords": {
			"type": "varchar",
			"dbType": "varchar(200)",
			"length": 200,
			"sanitizeFn": [
				"ip2.markdownToHtml",
				"ip2.removeHtmlTags",
				"ip2.sliceString"
			],
			"sanitizeArgs": [
				[],
				[],
				[
					0,
					200
				]
			],
			"groups": [
				"meta"
			],
			"title": "property_keywords_title",
			"enforceCaretPosition": true,
			"placeholder": "property_keywords_placeholder"
		},
		"serpPreview": {
			"type": "serppreviewfield",
			"title": "property_serppreview_title",
			"titleField": "metatitle",
			"urlField": "seourl",
			"descriptionField": "metadescription",
			"keywordsField": "keywords",
			"groups": [
				"meta"
			]
		},
		"pubdate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"format": "Y-m-d",
			"i18n": true,
			"title": "property_pubdate_title",
			"placeholder": "property_pubdate_placeholder",
			"groups": [
				"publication"
			]
		},
		"expiredate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"i18n": true,
			"title": "property_expiredate_title",
			"placeholder": "property_expiredate_placeholder",
			"minDate": "today",
			"format": "Y-m-d",
			"groups": [
				"publication"
			]
		},
		"webactive": {
			"type": "boolean",
			"dbType": "char(5)",
			"length": 5,
			"i18n": true,
			"title": "property_webactive_title",
			"boxlabel": "property_webactive_boxlabel",
			"groups": [
				"publication"
			]
		},
		"siteclude": {
			"type": "includepicker",
			"dbType": "varchar(512)",
			"length": 512,
			"i18n": true,
			"typeConfig": {
				"includeText": "property_siteclude_typeconfig_includetext",
				"excludeText": "property_siteclude_typeconfig_excludetext",
				"allText": "property_siteclude_typeconfig_alltext"
			},
			"listConfig": {
				"dmd": "webshop.dmd",
				"entity": "WSHSITET00",
				"uiName": "portfolio",
				"displayField": "SITPROP_NAME",
				"valueField": "SITSITTKN",
				"anchor": "50%",
				"minWidth": 300,
				"emptyText": "property_siteclude_listconfig_emptytext"
			},
			"groups": [
				"publication"
			],
			"title": "property_siteclude_title"
		},
		"no_index": {
			"context": {
				"grid": {
					"uitype": "boolean"
				}
			},
			"title": "property_no_index_title",
			"type": "boolean",
			"dbType": "char(5)",
			"i18n": true,
			"length": 5,
			"groups": [
				"publication"
			],
			"boxlabel": "property_no_index_boxlabel"
		},
		"pubtitle": {
			"type": "htmlfield",
			"dbType": "varchar(256)",
			"length": 256,
			"title": "property_pubtitle_title",
			"isFormField": false,
			"groups": [
				"system"
			],
			"borrow": {
				"sanitizeFn": "ip2.setPublicationTitle",
				"and": true,
				"initialize": true,
				"fields": [
					{
						"from": "pubdate",
						"trigger": "change",
						"conditionFn": "ip2.trueFn"
					},
					{
						"from": "expiredate",
						"trigger": "change",
						"conditionFn": "ip2.trueFn"
					},
					{
						"from": "pubstatus",
						"trigger": "change",
						"conditionFn": "ip2.trueFn"
					},
					{
						"from": "removed",
						"trigger": "change",
						"conditionFn": "ip2.trueFn"
					},
					{
						"from": "siteclude",
						"trigger": "change",
						"conditionFn": "ip2.trueFn"
					}
				]
			}
		},
		"pubstatus": {
			"title": "property_pubstatus_title",
			"type": "picker",
			"dbType": "integer",
			"length": 5,
			"i18n": true,
			"enum": "pubstatus",
			"preprocess": [
				{
					"regexp": "^",
					"replace": "webr~pubstatus~"
				}
			],
			"postprocess": [
				{
					"search": "webr~pubstatus~",
					"replace": ""
				}
			],
			"groups": [
				"publication"
			]
		},
		"removed": {
			"type": "boolean",
			"dbType": "char(5)",
			"length": 5,
			"i18n": true,
			"title": "property_removed_title",
			"boxlabel": "property_removed_boxlabel",
			"groups": [
				"publication"
			]
		},
		"hasSeoUrl": {
			"type": "boolean",
			"dbtype": "char(5)",
			"length": 5,
			"i18n": true,
			"title": "property_hasseourl_title"
		},
		"seourl": {
			"type": "varchar",
			"dbType": "varchar(512)",
			"length": 512,
			"sanitizeFn": "ip2.urlFriendly",
			"enforceCaretPosition": true,
			"i18n": true,
			"dependsOn": [
				{
					"field": "hasSeoUrl",
					"equal": true
				}
			],
			"title": "property_seourl_title",
			"placeholder": "property_seourl_placeholder",
			"translate": true,
			"seoValidation": {
				"errorMessage": {
					"da": "SEO URL er allerede i brug",
					"en": "SEO URL already in use"
				},
				"content": "product",
				"delay": 300,
				"tokenKey": "ITMITMTKN"
			},
			"borrow": [
				{
					"from": "name",
					"trigger": "blur",
					"conditionFn": "ip2.isXpdCreateBorrow"
				}
			]
		},
		"combi": {
			"type": "fieldcombi",
			"fields": [
				{
					"name": "hasSeoUrl",
					"labelWidth": 0,
					"fieldLabel": "",
					"anchor": ""
				},
				{
					"name": "seourl",
					"flex": 1,
					"fieldLabel": "",
					"anchor": ""
				}
			],
			"groups": [
				"text"
			],
			"title": "property_hasseourl_title"
		},
		"__cid__": {
			"title": "property_cid_title",
			"dbType": "integer",
			"length": 5,
			"private": true
		},
		"token": {
			"type": "display",
			"dbType": "integer",
			"length": 9,
			"from": {
				"dmd": "webshop.dmd",
				"entity": "WSHITMET00",
				"field": "ITMITMTKN"
			},
			"groups": [
				"system"
			],
			"title": "property_token_title"
		},
		"itemnumber": {
			"type": "varchar",
			"dbType": "varchar(20)",
			"length": 20,
			"required": true,
			"relaychange": true,
			"groups": [
				"information"
			],
			"title": "property_itemnumber_title"
		},
		"manufacturer": {
			"type": "entitypicker",
			"dmd": {
				"file": "webshop.dmd",
				"entity": "WSHNAMET00",
				"extraParams": {
					"filter": "[{property: NAMPROP___CID__, value: 1}]",
					"sort": "NAMPROP_NAME ASC"
				}
			},
			"filter": false,
			"relaychange": true,
			"groups": [
				"information"
			],
			"title": "property_manufacturer_title"
		},
		"name": {
			"type": "varchar",
			"dbType": "varchar(64)",
			"i18n": true,
			"length": 64,
			"groups": [
				"text"
			],
			"title": "property_name_title",
			"placeholder": "property_name_placeholder"
		},
		"title": {
			"type": "varchar",
			"dbType": "varchar(256)",
			"i18n": true,
			"length": 256,
			"groups": [
				"text"
			],
			"title": "property_title_title",
			"placeholder": "property_title_placeholder"
		},
		"description": {
			"type": "markdowneditor",
			"dbType": "varchar(4096)",
			"i18n": true,
			"length": 4096,
			"actions": [
				"h3",
				"bold",
				"italic",
				"link",
				"quote",
				"image",
				"olist",
				"ulist",
				"hr"
			],
			"textareaConfig": {
				"rows": 10,
				"grow": true,
				"growMax": 300,
				"i18n": true
			},
			"groups": [
				"text"
			],
			"title": "property_description_title"
		},
		"image": {
			"context": {
				"grid": {
					"hidden": true
				}
			},
			"type": "mediagallery",
			"dbType": "varchar(1024)",
			"length": 1024,
			"path": "/images/product",
			"parentEntity": "WSHITMET00",
			"parentEnumType": "WSHITMET00_IMAGES",
			"childEntity": "WSHFILET00",
			"childEnumType": "WSHFILET00_IMAGES",
			"groups": [
				"image"
			],
			"actionColumns": {
				"primary": {
					"type": "radiocheckbox",
					"name": "primary",
					"autoSelect": true,
					"title": {
						"da": "Primær",
						"en": "Primary"
					},
					"toolTip": {
						"da": "Marker for at bruge dette på artikelbillede",
						"en": "Select to use image in article"
					}
				},
				"mobile": {
					"type": "radiocheckbox",
					"name": "mobile",
					"autoSelect": true,
					"title": {
						"da": "Mobil",
						"en": "Mobile"
					},
					"toolTip": {
						"da": "Marker for at bruge dette som primærbillede i mobilvisning",
						"en": "Select to use this as primary on mobile view"
					}
				},
				"meta": {
					"type": "radio",
					"name": "meta",
					"autoSelect": true,
					"title": {
						"da": "Share",
						"en": "Share"
					},
					"toolTip": {
						"da": "Nogle Sociale medier benytter sig af dette. Marker for at vise det til fx Facebook",
						"en": "Some social medias use Share images. Select to show this on fx Facebook"
					}
				},
				"lightbox": {
					"type": "checkbox",
					"name": "lightbox",
					"title": {
						"da": "Lightbox",
						"en": "Lightbox"
					},
					"toolTip": {
						"da": "Marker for at vise billede vises i lightbox",
						"en": "Select to show in lightbox"
					}
				}
			},
			"title": "property_image_title"
		},
		"datasheet": {
			"type": "mediagallery",
			"dbType": "varchar(1024)",
			"length": 1024,
			"path": "/uploads/datasheet",
			"extensions": [
				"doc",
				"docx",
				"pdf",
				"xls",
				"xlsx",
				"jpg",
				"jpeg",
				"png",
				"tif",
				"tiff"
			],
			"dropText": {
				"en": "Drag-and-drop your data sheets here <br /><small>pdf, doc, docx, xls, xlsx, jpg, jpeg, png, tif, tiff</small>",
				"da": "Træk-og-slip dine datablade her<br /><small>pdf, doc, docx, xls, xlsx, jpg, jpeg, png, tif, tiff</small>"
			},
			"groups": [
				"datasheet"
			],
			"title": "property_datasheet_title",
			"parentEntity": "WSHITMET00",
			"parentEnumType": "WSHITMET00_DATASHEETS",
			"childEntity": "WSHFILET00",
			"childEnumType": "WSHFILET00_DATASHEETS"
		},
		"theme": {
			"title": "property_theme_title",
			"type": "picker",
			"dbType": "varchar(64)",
			"length": 128,
			"enum": "themes",
			"preprocess": [
				{
					"regexp": "^",
					"replace": "webr~themes~"
				}
			],
			"postprocess": [
				{
					"search": "webr~themes~",
					"replace": ""
				}
			],
			"groups": [
				"publication"
			]
		},
		"remark": {
			"type": "textarea",
			"dbType": "varchar(1024)",
			"length": 1024,
			"i18n": true,
			"title": "property_remark_title",
			"groups": [
				"offline"
			]
		}
	},
	"collections": {},
	"groups": {
		"meta": {
			"title": "group_meta_title",
			"renderIn": {
				"editor": {
					"collapsed": true,
					"sequence": 4000
				}
			}
		},
		"publication": {
			"title": "group_publication_title",
			"renderIn": {
				"editor": {
					"collapsed": false,
					"sequence": 8000,
					"collasible": false,
					"collapsible": false
				}
			}
		},
		"system": {
			"title": "group_system_title",
			"renderIn": {
				"editor": {
					"sequence": 1000,
					"type": "fieldcontainer"
				}
			}
		},
		"information": {
			"title": "group_information_title",
			"renderIn": {
				"editor": {
					"sequence": 2000,
					"type": "fieldcontainer"
				}
			}
		},
		"text": {
			"title": "group_text_title",
			"renderIn": {
				"editor": {
					"sequence": 3000,
					"type": "fieldcontainer"
				}
			}
		},
		"image": {
			"title": "group_images_title",
			"renderIn": {
				"editor": {
					"sequence": 5000
				},
				"webshop": {}
			}
		},
		"datasheet": {
			"title": "group_datasheet_title",
			"renderIn": {
				"editor": {
					"sequence": 5010,
					"collapsed": true
				},
				"webshop": {}
			}
		},
		"offline": {
			"title": "group_offline_title",
			"renderIn": {
				"editor": {
					"sequence": 7000
				}
			}
		}
	},
	"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": "98%",
				"minWidth": 0
			},
			"metatitle": {
				"sequence": 10
			},
			"metadescription": {
				"sequence": 20
			},
			"metakeywords": {
				"sequence": 30
			},
			"keywords": {
				"sequence": 40
			},
			"serpPreview": {
				"sequence": 50
			},
			"pubdate": {
				"sequence": 30
			},
			"expiredate": {
				"sequence": 40
			},
			"theme": {
				"sequence": 20
			},
			"no_index": {
				"sequence": 60
			},
			"siteclude": {
				"sequence": 70
			},
			"webactive": {
				"sequence": 60
			},
			"pubtitle": {
				"sequence": 1000
			},
			"pubstatus": {
				"sequence": 50
			},
			"removed": {
				"sequence": 80
			},
			"hasSeoUrl": {
				"sequence": 400
			},
			"seourl": {
				"sequence": 400
			},
			"combi": {
				"sequence": 401
			},
			"token": {
				"sequence": 90
			},
			"itemnumber": {
				"sequence": 100
			},
			"manufacturer": {
				"sequence": 200
			},
			"name": {
				"sequence": 100
			},
			"title": {
				"sequence": 200
			},
			"description": {
				"sequence": 300
			},
			"image": {
				"sequence": 100
			},
			"datasheet": {
				"sequence": 100
			}
		},
		"folderorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		},
		"menuorganizer": {
			"__default__": {
				"width": "100%",
				"minWidth": 300
			}
		}
	},
	"language": {
		"da": {
			"text": {
				"environment_editor_title": "Editor miljø",
				"environment_folderorganizer_title": "Folderorganizer miljø",
				"environment_menuorganizer_title": "Menuorganizer miljø",
				"group_meta_title": "Søgeresultatsvisning (SERP)",
				"property_metatitle_title": "Title Tag",
				"property_metadescription_title": "Meta beskrivelse",
				"property_metakeywords_title": "Meta nøgleord",
				"property_metakeywords_placeholder": "...",
				"property_keywords_title": "Nøgleord",
				"property_keywords_placeholder": "Indtast et, to eller tre nøgleord. Bliver fremhævet i SERP eksemplet.",
				"property_serppreview_title": "Eksempel",
				"group_publication_title": "Publikation",
				"property_pubdate_title": "Publikationsdato",
				"property_pubdate_placeholder": "Angives ingen, publiceres dette øjeblikkeligt",
				"property_expiredate_title": "Udløbsdato",
				"property_expiredate_placeholder": "Valgfri udløbsdato for publiceringen",
				"property_webactive_title": "Publiceret",
				"property_webactive_boxlabel": "Siden publiceres jf. regler og datoer",
				"property_siteclude_title": "På flere hjemmesider",
				"property_siteclude_typeconfig_alltext": "Vis på alle hjemmesider",
				"property_siteclude_typeconfig_includetext": "Inkluder på valgte hjemmesider",
				"property_siteclude_typeconfig_excludetext": "Ekskluder fra valgte hjemmesider",
				"property_siteclude_listconfig_emptytext": "Vælg blandt disse sites",
				"property_no_index_title": "Ingen indeksering",
				"property_no_index_boxlabel": "Ikke synlig for søgemaskiner",
				"property_pubtitle_title": "Publikation",
				"property_pubstatus_title": "Status",
				"property_removed_title": "Slet",
				"property_removed_boxlabel": "Produkt bliver slettemarkeret",
				"property_hasseourl_title": "Brug SEO URL",
				"property_hasseourl_boxlabel": "Check her for at kunne indtaste en SEO URL",
				"property_seourl_title": "SEO URL",
				"property_seourl_placeholder": "Et ord eller kort tekst, som gør sidens URL unik. Side ID vil blive brugt, hvis ikke andet angives",
				"group_system_title": "System ID",
				"group_information_title": "Information",
				"group_images_title": "Billeder",
				"group_text_title": "Tekst",
				"group_datasheet_title": "Datablade",
				"group_offline_title": "Intern information",
				"property_cid_title": "Produkttype",
				"property_token_title": "ID",
				"property_name_title": "Produktnavn",
				"property_name_placeholder": "Kort og præcis",
				"property_title_title": "Produktnavn 2",
				"property_title_placeholder": "Bruges kun til visning internt i systemet.",
				"property_itemnumber_title": "Produktnr.",
				"property_description_title": "Beskrivelse",
				"property_image_title": "Billeder",
				"property_manufacturer_title": "Producent",
				"property_datasheet_title": "Datablade",
				"property_remark_title": "Notat",
				"property_theme_title": "Tema"
			}
		},
		"en": {
			"text": {
				"environment_editor_title": "Editor environment",
				"environment_folderorganizer_title": "Folderorganizer environment",
				"environment_menuorganizer_title": "Menuorganizer environment",
				"group_meta_title": "Search Engine Result Page (SERP)",
				"property_metatitle_title": "Title Tag",
				"property_metadescription_title": "Meta Description",
				"property_metakeywords_title": "Meta Keywords",
				"property_metakeywords_placeholder": "...",
				"property_keywords_title": "Keyword",
				"property_keywords_placeholder": "Add one, two or three word keyword phrase. Highlights in SERP example.",
				"property_serppreview_title": "Example",
				"group_publication_title": "Publication",
				"property_pubdate_title": "Publication Date",
				"property_pubdate_placeholder": "If none, then this will be 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 according to rules and dates",
				"property_siteclude_title": "Multiple sites",
				"property_siteclude_typeconfig_alltext": "Show on all sites",
				"property_siteclude_typeconfig_includetext": "Include on selected sites",
				"property_siteclude_typeconfig_excludetext": "Exclude from selected sites",
				"property_siteclude_listconfig_emptytext": "Choose from these sites",
				"property_no_index_title": "No indexing",
				"property_no_index_boxlabel": "Not visible to search engines",
				"property_pubtitle_title": "Publication",
				"property_pubstatus_title": "Status",
				"property_removed_title": "Remove",
				"property_removed_boxlabel": "Product wiil be marked as deleted",
				"property_hasseourl_title": "Brug SEO URL",
				"property_hasseourl_boxlabel": "Check here to enter a SEO URL",
				"property_seourl_title": "SEO URL",
				"property_seourl_placeholder": "A word or short text that makes the page URL unique. Page ID will be used if not otherwise specified",
				"group_system_title": "System ID",
				"group_information_title": "Information",
				"group_text_title": "Text",
				"group_images_title": "Images",
				"group_datasheet_title": "Data Sheets",
				"group_offline_title": "Internal information",
				"property_cid_title": "Product Type",
				"property_token_title": "ID",
				"property_title_title": "Product Name 2",
				"property_title_placeholder": "Only used internally in the system",
				"property_name_title": "Product Name",
				"property_name_placeholder": "Brief and precise",
				"property_itemnumber_title": "Product No.",
				"property_description_title": "Description",
				"property_image_title": "Images",
				"property_manufacturer_title": "Manufacturer",
				"property_datasheet_title": "Data Sheets",
				"property_remark_title": "Note",
				"property_theme_title": "Theme"
			}
		}
	}
}
