{
	"ns": "webr.ns",

	"propertyRules": "rules.xpd",

	"idProperty": "__cid__",

	"defaultLanguage": "en",

	"labelWidth": 160,

	"properties": {
		"token": {
			"type": "display",
			"dbType": "integer",
			"length": 5,
			"from": {
				"dmd": "webshop.dmd",
				"entity": "WSHITMET00",
				"field": "ITMITMTKN"
			},
			"groups": [
				"system"
			],
			"title": "property_token_title"
		},

		"name": {
			"type": "varchar",
			"dbType": "varchar(64)",
			"length": 64,
			"groups": [
				"text",
				"fteaser",
				"fbasket"
			],
			"title": "property_name_title",
			"placeholder": "property_name_placeholder"
		},
		"title": {
			"type": "varchar",
			"dbType": "varchar(256)",
			"length": 256,
			"groups": [
				"text"
			],
			"title": "property_title_title",
			"placeholder": "property_title_placeholder"
		},
		"description": {
			"type": "markdowneditor",
			"dbType": "varchar(4096)",
			"length": 4096,
			"actions": [
				"h3",
				"bold",
				"italic",
				"link",
				"quote",
				"image",
				"olist",
				"ulist",
				"hr"
			],
			"textareaConfig": {
				"rows": 10,
				"grow": true,
				"growMax": 300
			},
			"groups": [
				"text",
				"fdesc",
				"fteaser"
			],
			"title": "property_description_title"
		},
		"seourl": {
			"type": "varchar",
			"dbType": "varchar(512)",
			"length": 512,
			"title": "property_seourl_title",
			"placeholder": "property_seourl_placeholder",
			"groups": [
				"text"
			],
			"borrow": [
				{
					"from": "name",
					"trigger": "blur",
					"conditionFn": "ip2.isXpdCreateBorrow"
				}
			],
			"enforceCaretPosition": true,
			"sanitizeFn": "ip2.urlFriendly"
		},

		"itemnumber": {
			"type": "varchar",
			"dbType": "varchar(20)",
			"length": 20,
			"required": true,
			"relaychange": true,
			"groups": [
				"information",
				"fspecs",
				"fbasket",
				"fteaser"
			],
			"title": "property_itemnumber_title"
		},
		"manufacturer": {
			"type": "entitypicker",
			"dbType": "integer",
			"length": 5,
			"title": "property_manufacturer_title",
			"forceselection": true,
			"relaychange": true,
			"groups": [
				"information",
				"fspecs",
				"fbasket"
			],
			"dmd": {
				"file": "webshop.dmd",
				"entity": "WSHNAMET00",
				"extraParams": {
					"filter": "NAMPROP___CID__ = '1'"
				}
			}
		},
		"manufactureritemnumber": {
			"type": "varchar",
			"dbType": "varchar(20)",
			"length": 20,
			"required": true,
			"relaychange": true,
			"groups": [
				"information",
				"fspecs"
			],
			"title": "property_manufactureritemnumber_title"
		},

		"image": {
			"type": "mediagallery",
			"dbType": "varchar(1024)",
			"length": 1024,
			"browseservice": "ip2-services/webbios.aspx?pathList=images/product&environment=gallery",
			"uploadservice": "ip2-services/xpdFileupload.aspx",
			"path": "/images/product",
			"groups": [
				"image"
			],
			"title": "property_image_title"
		},
        "datasheet": {
            "type": "mediagallery",
            "dbType": "varchar(1024)",
            "length": 1024,
            "path": "/images/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"
        },
		"pubdate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"format": "Y-m-d",
			"title": "property_pubdate_title",
			"placeholder": "property_pubdate_placeholder",
			"groups": [
				"lifecycle"
			]
		},
		"expiredate": {
			"type": "date",
			"dbType": "varchar(26)",
			"length": 26,
			"title": "property_expiredate_title",
			"placeholder": "property_expiredate_placeholder",
			"minDate": "today",
			"format": "Y-m-d",
			"groups": [
				"lifecycle"
			]
		},
		"webactive": {
			"type": "boolean",
			"dbType": "char(5)",
			"length": 5,
			"title": "property_webactive_title",
			"boxlabel": "property_webactive_boxlabel",
			"groups": [
				"lifecycle"
			]
		},
		"remark": {
			"type": "textarea",
			"dbType": "varchar(1024)",
			"length": 1024,
			"title": "property_remark_title",
			"groups": [
				"offline"
			]
		},
		"metatitle": {
			"type": "varchar",
			"dbType": "varchar(65)",
			"length": 65,
			"title": "property_metatitle_title",
			"groups": [
				"meta"
			],
			"sanitizeFn": "ip2.sliceString",
			"sanitizeArgs": [
				0,
				65
			],
			"enforceCaretPosition": true
		},
		"metadescription": {
			"type": "varchar",
			"dbType": "varchar(156)",
			"length": 156,
			"title": "property_metadescription_title",
			"groups": [
				"meta"
			],
			"sanitizeFn": [
				"ip2.markdownToHtml",
				"ip2.removeHtmlTags",
				"ip2.sliceString"
			],
			"sanitizeArgs": [
				[],
				[],
				[
					0,
					156
				]
			]
		},
		"metakeywords": {
			"type": "varchar",
			"dbType": "varchar(256)",
			"length": 256,
			"groups": [
				"meta"
			],
			"title": "property_metakeywords_title"
		}
	},

	"collections": {
		"basic": {
			"id": 1,
			"title": "collection_basic_title",
			"family": {
				"cid": 2
			},
			"properties": {}
		}
	},

	"layout": {
		"editor": {
			"__default__": {
				"minWidth": 100,
				"width": 600
			},
			"token": {
				"sequence": 10,
				"width": 300
			},

			"name": {
				"sequence": 10
			},
			"title": {
				"sequence": 20,
				"width": "90%"
			},
			"description": {
				"sequence": 30,
				"width": "90%"
			},
			"seourl": {
				"sequence": 40
			},
			"image": {
				"sequence": 10,
				"width": "90%"
			},
            "datasheet": {
                "sequence": 20,
                "width": "90%"
            },

			"weight": {
				"sequence": 10,
				"fieldStyle": "text-align:right;",
				"width": 300
			},
			"volume": {
				"sequence": 20,
				"fieldStyle": "text-align:right;",
				"width": 300
			},
			"price": {
				"sequence": 30,
				"width": 450
			},
			"priceunit": {
				"sequence": 40,
				"width": 450
			},

			"metatitle": {

			},
			"metadescription": {
				"width": "80%",
				"minWidth": 800
			},
			"metakeywords": {
				"width": "70%",
				"minWidth": 700
			},

			"pubdate": {
				"sequence": 50
			},
			"expiredate": {
				"sequence": 60
			},
			"manufacturer": {
				"width": 450,
				"sequence": 70
			},
			"manufactureritemnumber": {
				"width": 450,
				"sequence": 80
			},
			"itemnumber": {
				"width": 450,
				"sequence": 90
			},
			"eranumber": {
				"width": 450
			},
			"maintenance": {
				"width": 450
			},
			"quality": {
				"width": 450,
				"sequence": 100
			},
			"rightdrive": {
				"sequence": 110
			}
		}
	},
	"environments": {
		"editor": {
			"title": "environment_editor_title"
		},
		"webshop": {
			"itemName": {
				"extend": "name",
				"layout": {
					"tagName": "h1",
					"attrs": " itemprop=name"
				}
			}
		}
	},
	"groups": {
		"system": {
			"title": "group_system_title",
			"index": 100,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 100
					}
				}
			}
		},
		"information": {
			"title": "group_information_title",
			"index": 200,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 200
					}
				}
			}
		},
		"text": {
			"title": "group_text_title",
			"index": 300,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 300
					}
				}
			}
		},
		"image": {
			"title": "group_images_title",
			"index": 400,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 400
					}
				},
				"webshop": {}
			}
		},
        "datasheet": {
            "title": "group_datasheet_title",
            "index": 450,
            "renderIn": {
                "editor": {
                    "layout": {
                        "sequence": 450,
                        "collapsed": true
                    }
                },
                "webshop": {}
            }
        },
		"specification": {
			"title": "group_specification_title",
			"index": 500,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 500
					}
				}
			}
		},
		"measurement": {
			"title": "group_measurement_title",
			"index": 600,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 600
					}
				}
			}
		},
		"price": {
			"title": "group_price_title",
			"index": 700,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 700
					}
				}
			}
		},
		"units": {
			"title": "group_units_title",
			"index": 800,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 800
					}
				}
			}
		},
		"meta": {
			"title": "group_meta_title",
			"index": 900,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 900
					}
				}
			}
		},
		"lifecycle": {
			"title": "group_lifecycle_title",
			"index": 1000,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 1000,
						"collapsed": true
					}
				}
			}
		},
		"offline": {
			"title": "group_offline_title",
			"index": 1100,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 1000,
						"collapsed": true
					}
				}
			}
		},
		"nogroup": {
			"title": "nogroup",
			"index": 999999,
			"renderIn": {
				"editor": {
					"layout": {
						"sequence": 999999
					}
				}
			}
		},
		"fdesc": {
			"title": "description",
			"renderIn": {
				"webshop": {
					"layout": {
						"__default__": {
							"tagName": "div"
						},
						"description": {
							"tagName": "div",
							"attrs": " itemprop=description",
							"className": "subheader"
						}
					}
				}
			}
		},
		"fspecs": {
			"title": "description",
			"renderIn": {
				"webshop": {
					"steal": {
						"__default__": [
							"enum",
							{
								"name": "title",
								"as": "label",
								"translate": true
							},
							{
								"name": "labelsuffix",
								"as": "syffix",
								"translate": true
							}
						]
					},
					"layout": {
						"itemnumber": {
							"attrs": " itemprop=itemnumber"
						}
					}
				}
			}
		},
		"fbasket": {
			"title": "description",
			"renderIn": {
				"webshop": {
					"sequence": [
						"name"
					],
					"steal": {
						"__default__": [
							"enum",
							{
								"name": "title",
								"as": "label",
								"translate": true
							},
							{
								"name": "labelsuffix",
								"as": "syffix",
								"translate": true
							}
						],
						"name": [
							"enum"
						]
					},
					"layout": {
						"__default__": {},
						"name": {
							"link": true
						}
					}
				}
			}
		},
		"fteaser": {
			"title": "teaser",
			"renderIn": {
				"webshop": {
					"sequence": [
						"name",
						"description"
					],
					"steal": {
						"__default__": [
							"enum"
						],
						"quality": [
							{
								"name": "title",
								"as": "label",
								"translate": true
							}
						],
						"itemnumber": [
							{
								"name": "title",
								"as": "label",
								"translate": true
							}
						]
					},
					"layout": {
						"__default__": {
							"tagName": "div"
						},
						"name": {
							"tagName": "h5"
						}
					}
				}
			}
		}
	},
	"language": {
		"da": {
			"text": {
				"pickertitle": "Vælg varetype",
				"environment_editor_title": "Editor miljø",
				"collection_basic_title": "Produkt",

				"group_nogroup_title": "Uden kategori",
				"group_system_title": "System ID",
				"group_meta_title": "Søgeresultatsvisning (SERP)",
				"group_information_title": "Information",
				"group_specification_title": "Specifikationer",
				"group_images_title": "Billeder",
				"group_measurement_title": "Mål",
				"group_offline_title": "Interne oplysninger",
				"group_lifecycle_title": "Publikation",
				"group_units_title": "Enhed",
				"group_price_title": "Priser",
				"group_text_title": "Tekst",
                "group_datasheet_title": "Datablade",

				"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_manufacturer_title": "Producent",
				"property_itemnumber_title": "Produktnr.",
				"property_manufactureritemnumber_title": " Producentens produktnr.",
				"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",
				"property_description_title": "Beskrivelse",
				"property_image_title": "Billeder",
				"property_pubdate_title": "Publikationsdato",
				"property_pubdate_placeholder": "Angives ingen, publiceres produktet ø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_remark_title": "Note",
				"property_metatitle_title": "Title Tag",
				"property_metadescription_title": "Metabeskrivelse",
				"property_metakeywords_title": "Meta nøgleord",
                "property_datasheet_title": "Datablade"
			}
		},
		"en": {
			"text": {
				"pickertitle": "Choose product type",
				"environment_editor_title": "Editor Environment",
				"collection_basic_title": "Product",

				"group_nogroup_title": "Without category",
				"group_system_title": "System ID",
				"group_meta_title": "Search Engine Result Page (SERP)",
				"group_information_title": "Information",
				"group_specification_title": "Specification",
				"group_text_title": "Text",
				"group_units_title": "Unit",
				"group_offline_title": "Internal Information",
				"group_measurement_title": "Measurement",
				"group_price_title": "Price",
				"group_lifecycle_title": "Publication",
				"group_images_title": "Images",
                "group_datasheet_title": "Data Sheets",

				"property_token_title": "ID",
				"property_itemnumber_title": "Product No.",
				"property_manufacturer_title": "Manufacturer",
				"property_manufactureritemnumber_title": "Manufacturer Product No.",
				"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",
				"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_description_title": "Description",
				"property_image_title": "Images",
				"property_price_title": "Price, DKK",
				"property_pubdate_title": "Publication Date",
				"property_pubdate_placeholder": "If none the product 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_remark_title": "Note",
				"property_metatitle_title": "Title Tag",
				"property_metadescription_title": "Meta Description",
				"property_metakeywords_title": "Meta Keywords",
                "property_datasheet_title": "Data Sheets"
			}
		}
	}
}
