webandco/neos-taxonomy

Last activity 17 days ago
  • 5
  • 513
composer require webandco/neos-taxonomy

web&co neos taxonomy package

3.0.2

web&co neos taxonomy package

Homepage
http://webandco.com
Version
3.0.2
Type
neos-package
Release Date
Mar 14, 2017 4:47:37 p.m.
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
GPL-3.0+
  • #flow
  • #taxonomy
  • #neos
102442c579e5364395f43509bd1c894103a9a8b3

TYPO3 Neos Taxonomy Package

This package provides taxonomy functionality for typo3 neos.

Structure

Document NodeTypes

  • DocumentTaxonomyStorage: Taxonomy root node (entry point)

  • DocumentTaxonomyVocabulary: You can specify one or many vocabularies with individual access rights or behavior.

    eg. "Free" for free tagging

    eg. "Location" to provide structured taxonomies like country, state, city, ...

  • DocumentTaxonomy: Create new nodes and use them as taxonomies right away.

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

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.

Parameters

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

Setup

  • Download the package via composer
  • Create the basic structure

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

Examples

List.ts2 implementation

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

Chaining implementation

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

TODO's

  • Roadmap
  • Neutral namespacing (eg. Flowpack or Neos)
  • Performance
  • Testing

What's next ?

To make this an official flow package or even a core module, we need help. So please do not hesitate and contribute or contact us over GitHub. We would also like to enhance the package to serve as a system wide taxonomy solution (eg. for the media package) in the future.

Happy Coding!

Pull Requests are welcome!!

The content of the readme is provided by Github
The same vendor provides 6 package(s).