[Flow] Tags as a model

Dominique Feyer dfeyer at ttree.ch
Thu Apr 17 17:40:52 CEST 2014


Taxomony is not an easy topic at all ;) 

For a basic idea of Taxonomy and Taxon, read: 
http://sylius.readthedocs.org/en/latest/bundles/SyliusTaxonomiesBundle/taxonomy_and_taxon.html

To support finding multiple entities type during the same query, you can use a « relation object » , with property like:

object (UUID of the tagged object)
className (classname of the tagged object)
taxon (UUID of the taxon object)
createdAt (when the taxon as been applied)

With a dedicated Repository you can retrieve entity my className (or type), or by taxon (or tag).

The relation in the DB are weak so you don’t have a real relation between your « relation object » and the entity. So you need some logic to cleanup the index if some entry are removed, … Maybe simply adding an annotation « Taggeable » in the entity can be a solution.

For your rating system, you can found some inspiration in the taxonomy topic, but in the case your Relation Object must store some other data, like the rating, the user who do the rating, ...

Hope that help,

Bests,

--   
ttree sàrl  
Dominique Feyer  
Rue du Valentin 34 et demi
CH - 1004 Lausanne
+41 21  312 36 35  
dfeyer at ttree.ch
ttree.ch - @ttreeagency - plan d’accès

Le 17 avril 2014 à 17:15:03, Rik Willems (rik at metmeer.nl) a écrit:

Hi Dominique et al,

From a technical point of view, how would I implement this in a simple  
way? A similar case would be to favourite/star entities from different  
models.

Cheers!


Dominique Feyer schreef op 17-04-14 14:42:
> We definitively need a proper projet for Taxonomy in Flow & Neos.
>
> Currently you need to implement everything in your application.
>
> Bests
>
> --
> ttree sàrl
> Dominique Feyer
> Rue du Valentin 34 et demi
> CH - 1004 Lausanne
> +41 21 312 36 35
> dfeyer at ttree.ch
> ttree.ch - @ttreeagency - plan d’accès
>
>

_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow


More information about the Flow mailing list