<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
    xmlns:plone="http://namespaces.plone.org/plone"
    i18n_domain="untranslated"
    >

  <include package="collective.mustread" />
  <include package="ploneintranet.search" />
  <include package="ploneintranet.userprofile" />
  <include package="plone.app.iterate" />
  <include file="permissions.zcml" />

  <include package=".adapters" />
  <include package=".browser" />
  <include package=".notifications" />
  <include package=".subscribers" />
  <include package=".vocabularies" />

  <plone:behavior
      name="quaive.news_meta"
      title="Newsitem Magazine Metadata"
      description="Magazine metadata for News Item"
      factory=".behaviors.NewsMeta"
      provides=".behaviors.INewsMeta"
      />

  <plone:behavior
      name="quaive.banner"
      title="Banner behavior"
      factory=".behaviors.BannerBehavior"
      provides=".behaviors.IBannerBehavior"
      for="plone.app.contenttypes.interfaces.INewsItem"
      />

  <plone:behavior
      name="quaive.news_splashpage"
      title="Splash page behavior"
      factory=".behaviors.SplashPageBehavior"
      provides=".behaviors.ISplashPageBehavior"
      for="plone.app.contenttypes.interfaces.INewsItem"
      />

  <plone:behavior
      name="quaive.news_app"
      title="Storage for the selected news sections and layout"
      provides=".behaviors.INewsApp"
      />

  <plone:behavior
      name="quaive.news_syndication"
      title="News syndication fields and methods"
      factory=".behaviors.NewsSyndication"
      provides=".behaviors.INewsSyndication"
      for="ploneintranet.news.content.INewsSection"
      />

  <plone:behavior
      name="quaive.news_smartsection"
      title="News smart section fields and methods"
      factory=".behaviors.NewsSmartSection"
      provides=".behaviors.INewsSmartSection"
      for="ploneintranet.news.content.INewsSection"
      />

  <interface interface=".interfaces.IBannerWithHero" />
  <interface interface=".interfaces.IBannerWithIcon" />
  <interface interface=".interfaces.ISplashPage" />
  <interface interface=".interfaces.IMaintainerGroup" />
  <interface interface=".interfaces.IReaderGroup" />
  <interface interface=".interfaces.IMagazineHome" />

  <adapter
      factory=".indexers.section_uuid"
      name="section_uuid"
      />
  <adapter
      factory=".indexers.languages"
      name="languages"
      />

  <genericsetup:registerProfile
      name="default"
      title="Plone Intranet: -- [News: Install]"
      description="Installs the ploneintranet.news package"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/default"
      post_handler="ploneintranet.news.setuphandlers.setupVarious"
      />

  <genericsetup:registerProfile
      name="uninstall"
      title="Plone Intranet: -- [News: Uninstall]"
      description="Uninstalls the ploneintranet.news package"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/uninstall"
      post_handler="ploneintranet.news.uninstall.uninstall"
      />

  <genericsetup:registerProfile
      name="testing"
      title="Plone Intranet: -- [News: Testcontent]"
      description="Installs test content for ploneintranet.news"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/test"
      post_handler="ploneintranet.news.setuphandlers.setupTestdata"
      />

</configure>
