2017 © Pedro Peláez
 

neos-package news

News plugin for Neos

image

lelesys/news

News plugin for Neos

  • Thursday, January 25, 2018
  • by pankajlele
  • Repository
  • 20 Watchers
  • 12 Stars
  • 3,325 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 13 Versions
  • 2 % Grown

The README.md

Lelesys.News

Please find documentation at following link:, (*1)

http://www.lelesys.com/en/technology/about-typo3-neos/neos-packages/news-package-extension-for-typo3-neos.html, (*2)

Even though it is for the first version, it still is valid., (*3)

NeosCMS 4.0 support

By default Neos site kickstarter does not anymore create page object like "page = Neos.Neos:Page" but it creates separate Page nodetype based on your site package key e.g. My.Site:Page., (*4)

To make the news package work you need to add following lines in your site's Root.fusion:, (*5)

prototype(Lelesys.News:Folder) < prototype(My.Site:Page)
prototype(Lelesys.News:Category) < prototype(My.Site:Page)
prototype(Lelesys.News:News) < prototype(My.Site:Page)

In Fusion, if you have path of your main content object different than body.content.main then you can do following to override it:, (*6)

prototype(Lelesys.News:News) {
    body.content.something = Lelesys.News:NewsRenderer
}

Using Elasticsearch

To speed up handling of news filtering and sorting, using Elasticsearch is recommended., (*7)

If you have the installed flowpack/elasticsearch-contentrepositoryadaptor (and its dependencies), news will be indexed correctly. If you already have created news before installing the Elasticsearch adaptor, run ./flow nodeindex:build to create the index., (*8)

The configure the plugin to use Elasticsearch to fetch the news add this to your TypoScript:, (*9)

prototype(Lelesys.News:List) {
    newsCollection = Lelesys.News:ElasticsearchNewsCollector
}

prototype(Lelesys.News:Latest) {
    newsCollection.value.@process.slice = ${value.limit(String.toInteger(configuration.numberOfItems))}
    newsCollection.value.@process.toArray = ${value.toArray()}
    newsCollection.value.@process.toArray.@position = 'after execute'
}

The list view fetches a maximum of 1000 items (before pagination is applied!), this can be adjusted with:, (*10)

newsCollection = Lelesys.News:ElasticsearchNewsCollector {
    value.@process.limit = ${value.limit(42)}
}

To enable logging of the queries sent to Elasticsearch (Data/Logs/ElasticSearch.log), you can do:, (*11)

newsCollection = Lelesys.News:ElasticsearchNewsCollector {
    value.@process.log = ${value.log()}
    value.@process.log.@position = 'before execute'
}

Similarly you can adjust the query by adding further filters, the value in the collector is an instance of the ElasticSearchQueryBuilder:, (*12)

newsCollection = Lelesys.News:ElasticsearchNewsCollector {
    # exclude "hidden in menu" entries from the List`s news collection
    value.@process.filterHiddenInIndex= ${value.queryFilter('term', {'_hiddenInIndex': true}, 'must_not')}
    value.@process.filterHiddenInIndex.@position = 'before execute'
}

The Versions

25/01 2018

dev-master

9999999-dev

News plugin for Neos

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

25/01 2018

3.0.1

3.0.1.0

News plugin for Neos

  Sources   Download

GPL-3.0-or-later

The Requires

 

24/01 2018

2.3.x-dev

2.3.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

24/01 2018

2.0.0

2.0.0.0

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0-or-later

The Requires

 

23/01 2018

3.0.0

3.0.0.0

News plugin for Neos

  Sources   Download

GPL-3.0-or-later

The Requires

 

18/07 2016

2.2.x-dev

2.2.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

18/07 2016

2.0.x-dev

2.0.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

18/07 2016

2.1.x-dev

2.1.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

20/11 2014

1.0.x-dev

1.0.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

20/11 2014

1.1.x-dev

1.1.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

20/11 2014

1.2.x-dev

1.2.9999999.9999999-dev

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

24/04 2014

1.0.2

1.0.2.0

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires

 

29/03 2014

1.0.0-alpha1

1.0.0.0-alpha1

News plugin for TYPO3 Neos

  Sources   Download

GPL-3.0+

The Requires