
plugin.tx_news {
  view {
    templateRootPaths {
      1 = EXT:bgm_theme_azh/Resources/Private/Templates/News/Templates/
    }

    partialRootPaths {
      1 = EXT:bgm_theme_azh/Resources/Private/Templates/News/Partials/
    }

    layoutRootPaths {
      1 = EXT:bgm_theme_azh/Resources/Private/Templates/News/Layouts/
    }
  }

  settings {

    cssFile >
    cropMaxCharacters = 250
    detailPidDetermination = categories
    backPid = {$bgm_theme.pageUids.news}
    detailPidDetermination = default
    defaultDetailPid = {$bgm_theme.pageUids.news}

    fallbackImage {
      landscape = fileadmin/user_upload/azh/News/News_Fallback_Landscape.jpg
      portrait = fileadmin/user_upload/azh/News/News_Fallback_Portrait.jpg
    }
    list {

      paginate.itemsPerPage = 1000

      auszeichnung = News
      media.image.maxWidth = 275
      media.image.maxHeight >
      showFilter = 1

      imageCrop < lib.fluidContent.settings.producttileCrop
    }

    detail {

      showSocialShareButtons = 0

      media.image.maxWidth = {$styles.content.textmedia.maxWInText}

      sourceCollection {
        large {
          mediaQuery = (min-width: 1280px)
          width = 884
          height = 450c
        }

        medium {
          mediaQuery = (min-width: 768px)
          width = 768
          height >
        }

        small {
          mediaQuery =
          width = 600
          height >
        }
      }
    }

    link {
      skipControllerAndAction = 0
      hrDate = 0
    }
		showInitial = 12
		showInitialMobile = 3
		showMoreItems = 6
		showMoreItemsMobile = 3
  }
}

lib.tx_news.filter < tt_content.list.20.news_pi1
lib.tx_news.filter {
  switchableControllerActions {
    Category {
      1 = list
    }
  }

  settings {
    categories = 2,3,4
  }
}

lib.tx_news.years < tt_content.list.20.news_pi1
lib.tx_news.years {
  switchableControllerActions {
    News {
      1 = dateMenu
    }
  }
}

# Presse
#[PIDinRootline = {$bgm_theme.pageUids.presse}]
[{$bgm_theme.pageUids.presse} in tree.rootLineIds]
  plugin.tx_news.settings {
    backPid = {$bgm_theme.pageUids.presse}
    defaultDetailPid = {$bgm_theme.pageUids.presse}
    list.auszeichnung = Presse
    list.showFilter = 0
    list.showYears = 1
  }
[global]

# Stellen
[{$bgm_theme.pageUids.stellen} in tree.rootLineIds]
  lib.tx_news.filter.settings.categories = 6,7,8
  plugin.tx_news.settings {
    backPid = {$bgm_theme.pageUids.stellen}
    defaultDetailPid = {$bgm_theme.pageUids.stellen}
    list.auszeichnung = Stellen
    list.showFilter = 1
  }
[global]
