2017 © Pedro Peláez
 

neos-package neos-taxonomy

web&co neos taxonomy package

image

webandco/neos-taxonomy

web&co neos taxonomy package

  • Tuesday, April 17, 2018
  • by webandco
  • Repository
  • 4 Watchers
  • 8 Stars
  • 3,396 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 21 % Grown

The README.md

Neos Taxonomy Package

This package provides taxonomy functionality for Neos CMS., (*1)

Structure

Document NodeTypes

  • DocumentTaxonomyStorage: Taxonomy root node (entry point), (*2)

  • DocumentTaxonomyVocabulary: You can specify one or many vocabularies with individual access rights or behavior., (*3)

    eg. "Taxonomy" for free tagging, (*4)

    eg. "Location" to provide structured taxonomies like country, state, city, ..., (*5)

  • DocumentTaxonomy: Create new nodes and use them as taxonomies right away., (*6)

  • DocumentTaxonomyAbstract (for extending custom nodeTypes) Extend custom nodetypes for more specific FlowQuery expressions., (*7)

Content NodeTypes

  • TaxonomyList: A simple view you can use to show a list of nodes matching taxonomies utilized by the "intersect" FlowQuery operator.

Abstract NodeTypes

  • Webandco.Taxonomy:Taxonomy: Every nodeType inheriting Webandco.Taxonomy:Taxonomy will be available in the inspector - eg. utilized in the TaxonomyList yaml definition.

Intersect FlowQuery Operation

In order to find nodes use the provided intersect() FlowQuery Operator. Like with all FlowQuery operators chaining is possible. In the List.ts2 file you will find a working example., (*8)

Parameters

  • type: 'property' | 'node' - Note: if you choose node, for now just nodeType property is supported (todo)
  • property: eg. 'taxonomies'
  • taxonomies: eg 'top10, city,...'

getTaxonomies FlowQuery Operation

In oder to get all taxonomies related to a node you can use the getTaxonomies operation., (*9)

Parameters

  • vocabulary: restrict list to a specific vocabulary (uriPathSegment)
debug = Neos.Fusion:Debug {
    value = ${q(node).getTaxonomies())}
} 

Eel Helper

There is a Eel helper available to convert a taxonomy node array to a string. In order to do that the helper will extract the uriPathSegment as a comma separated list. If you define a defaultDimensionPreset it will fetch the uriPathSegment from the specified dimension., (*10)

debug = Neos.Fusion:Debug {
    value = ${Webandco.Taxonomy.toString(q(node).getTaxonomies().get())}
}

Setup

  • Download the package via composer
  • Create the basic structure, (*11)

    • Storage
      • Vocabulary
        • Taxonomy
          • (Taxonomy)
  • Create a TaxonomyList content node and you are ready to go., (*12)

Examples

List.ts2 implementation, (*13)

${q(site).find('[instanceof Neos.Neos:Document]').filter('[taxonomies]').intersect('property', 'taxonomies', node.properties.taxonomies)}

Chaining implementation, (*14)

${q(site).find('[instanceof Neos.Neos:Document]').filter('[taxonomies]').intersect('property', 'taxonomies', node.properties.taxonomies).intersect('node', 'nodeType', node.properties.locations)}

TODO's

  • Roadmap
  • Performance
  • Testing

Pull Requests are welcome!!

The Versions

17/04 2018

dev-master

9999999-dev http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

flow taxonomy neos

14/03 2017

3.0.2

3.0.2.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

flow taxonomy neos

14/03 2017

3.0.1

3.0.1.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

flow taxonomy neos

16/02 2017

3.0

3.0.0.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

typo3 flow taxonomy neos

29/11 2016

2.0.x-dev

2.0.9999999.9999999-dev http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

typo3 flow taxonomy neos

29/11 2016

2.1

2.1.0.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

typo3 flow taxonomy neos

29/11 2016

2.2

2.2.0.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

typo3 flow taxonomy neos

29/08 2016

2.0

2.0.0.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

GPL-3.0+

The Requires

 

typo3 flow taxonomy neos

01/05 2015

1.0

1.0.0.0 http://webandco.com

web&co neos taxonomy package

  Sources   Download

WEBCO

The Requires

 

typo3 flow taxonomy neos