﻿<ContentType name="Product" parentType="WebContent" handler="SenseNet.ContentRepository.Folder" xmlns="http://schemas.sensenet.hu/SenseNet/ContentRepository/ContentTypeDefinition">
  <Title>Product</Title>
  <Description>A product content type</Description>
  <Icon>WebContent</Icon>
  <Fields>
    <Field name="Title" type="ShortText">
      <Title>Title</Title>
      <Description>The name of the product as it will appear</Description>
      <Icon>field.gif</Icon>
    </Field>
    <Field name="Subtitle" type="ShortText">
      <Title>Subtitle</Title>
      <Description>Subtitle of the product as it will appear</Description>
      <Icon>field.gif</Icon>
    </Field>
    <Field name="ShortDescription" type="ShortText">
      <Title>Short Description</Title>
      <Icon>field.gif</Icon>
    </Field>
    <Field name="LongDescription" type="LongText">
      <Title>Long Description</Title>
      <Description>Long description will appear on the details page</Description>
      <Icon>field.gif</Icon>
    </Field>
    <Field name="RelatedImage" type="Reference">
      <Title>Main Image</Title>
      <Description></Description>
      <Icon>field.gif</Icon>
      <Configuration>
        <AllowMultiple>false</AllowMultiple>
        <AllowedTypes>
          <Type>File</Type>
          <Type>Image</Type>
        </AllowedTypes>
      </Configuration>
    </Field>
    <Field name="RelatedImages" type="Reference">
      <Title>Product Images</Title>
      <Description></Description>
      <Icon>field.gif</Icon>
      <Configuration>
        <AllowMultiple>true</AllowMultiple>
        <AllowedTypes>
          <Type>Image</Type>
        </AllowedTypes>
      </Configuration>
    </Field>
    <Field name="Price" type="Number">
      <Title>Price</Title>
      <Description>Price of the product</Description>
      <Icon>field.gif</Icon>
      <Configuration>
        <MinValue>5</MinValue>
        <MaxValue>1200</MaxValue>
      </Configuration>
    </Field>
    <Field name="SpecialPrice" type="Number">
      <Title>Special Price</Title>
      <Description>Special price if the product is on sale</Description>
      <Icon>field.gif</Icon>
      <Configuration>
        <MinValue>5</MinValue>
        <MaxValue>1200</MaxValue>
      </Configuration>
    </Field>
  </Fields>
</ContentType>
