
var templateStore = {

  'home': {
    'layout': 'randomSwappedStairs',
    'templates': [
      {
        'class':              'MultiBox',
        'pictureDataPath':    '$.personalia.download.picture',
        'headlineDataPath':   '$.personalia.title',
        'teaserDataPath':     '$.personalia.text',
        'addClasses':          [ 'card_box' ],
        'teaserLink': {
          'route': 'page',
          'value': 'personalia'
        }
      }, {
        'class':            'EventBox',
        'dataPath':         '$.events',
        'headlineDataPath': '$.title',
        'textDataPath':     '$.text',
        'itemsDataPath':    '$.items',
        'addClasses':        [ 'card_box' ],
        'shortListing':     true
      }, {
        'class':    'Collection',
        'dataPath': '$..projects[?( @.onHomePage && isProjectPublished(@) )]',
        'childTemplates': [
          {
            'class':            'MultiBox',
            'pictureDataPath':  '$.pictures[0]',
            'headlineDataPath': '$.title',
            'teaserDataPath':   '$.text_short',
            'teaserLink': {
              'route':          'project',
              'valueDataPath':  '$.name'
            },
            'addClasses':       [ 'card_box' ]
          }
        ]
      }, {
        'class':    'Collection',
        'dataPath': '$..curator[?( @.onHomePage && isProjectPublished(@) )]',
        'childTemplates': [
          {
            'class':            'MultiBox',
            'pictureDataPath':  '$.pictures[0]',
            'headlineDataPath': '$.title',
            'teaserDataPath':   '$.text_short',
            'teaserLink': {
              'route':          'project',
              'valueDataPath':  '$.name'
            },
            'addClasses':       [ 'card_box' ]
          }
        ]
      }
    ]
  },

  'category': {
    'layout': 'stairs',
    'templates': [
      {
        'class': 'Collection',
        'childTemplates': [
          {
            'class':            'MultiBox',
            'pictureDataPath':  '$.pictures[0]',
            'headlineDataPath': '$.title',
            'teaserDataPath':   '$.text_short',
            'teaserLink': {
              'route':          'project',
              'valueDataPath':  '$.name'
            },
            'addClasses':       [ 'card_box' ]
          }
        ]
      }
    ]
  },

  'project': {
    'layout': 'expandParentElement',
    'templates': [
      {
        'class':            'MultiBox',
        'headlineDataPath': '$.title',
        'textDataPath':     '$.description',
        'styles':           { 'top': 0, 'left': 0, 'width': 200, 'height': 350 }
      }, {
        'class':            'Box',
        'id':               'content_box',
        'styles':           { 'top': 385, 'left': 470, 'width': 200, 'min-height': 50 }
      }, {
        'class':            'MediaBox',
        'picturesDataPath': '$.pictures[*]',
        'soundsDataPath':   '$.sounds[*]',
        'videosDataPath':   '$.videos[*]',
        'styles':           { 'top': 0, 'left': 235, 'width': 435, 'height': 350 },
        'contentBoxId':     'content_box'
      }, {
        'class':            'TextBox',
        'dataPaths':        ['$.text_short', '$.text_long'],
        'styles':           { 'top': 385, 'left': 0, 'width': 435 }
      }
    ]
  },

  'curator': {
    'layout': 'stairs',
    'templates': [
      {
        'class': 'Collection',
        'childTemplates': [
          {
            'class':            'MultiBox',
            'pictureDataPath':  '$.pictures[0]',
            'headlineDataPath': '$.title',
            'teaserDataPath':   '$.text_short',
            'teaserLink': {
              'route':          'project',
              'valueDataPath':  '$.name'
            },
            'addClasses':       [ 'card_box' ]
          }
        ]
      }
    ]
  },

  'gallery': {
    'layout': 'rows12',
    'templates': [
      {
        'class': 'Collection',
        'childTemplates': [
          {
            'class':            'MultiBox',
            'pictureDataPath':  '$.picture',
            'addClasses':       [ 'cover_box' ]
          }, {
            'class':            'MultiBox',
            'headlineDataPath': '$.title',
            'textDataPath':     '$.text'
          }
        ]
      }
    ]
  },

  'works': {
    'layout': 'rows21',
    'templates': [
      {
        'class':            'ChronBox',
        'dataPath':         '$..projects[?( isProjectPublished(@) )]'
      }, {
        'class':            'MultiBox',
        'headlineDataPath': '$.works.download.title',
        'textDataPath':     '$.works.download.text'
      }
    ]
  },

  'personalia': {
    'layout': 'rows21',
    'templates': [
      {
        'class':            'MultiBox',
        'headlineDataPath': '$.title',
        'textDataPath':     '$.text'
      }, {
        'class':            'MultiBox',
        'pictureDataPath':  '$.download.picture',
        'headlineDataPath': '$.download.title',
        'textDataPath':     '$.download.text',
        'addClasses':       [ 'card_box' ]
      }
    ]
  },

  'contact': {
    'layout': 'rows21',
    'templates': [
      {
        'class':            'MultiBox',
        'headlineDataPath': '$.title',
        'textDataPath':     '$.text'
      }
    ]
  },

  'events': {
    'layout': 'expandParentElement',
    'templates': [
      {
        'class':            'EventBox',
        'dataPath':         '$.events',
        'headlineDataPath': '$.title',
        'textDataPath':     '$.text',
        'itemsDataPath':    '$.items',
        'styles':           { 'width': 435 },
        'shortListing':     false
      }
    ]
  }

};

