Add description here

Installs: 3 017

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:neos-package

2.1.0 2024-08-25 11:52 UTC

This package is auto-updated.

Last update: 2024-10-25 12:13:26 UTC


README

{namespace ks=KayStrobach/Tags/ViewHelpers}

<ks:ifHasTag object="{object}" tag="{tag}">
    <f:then>
        ...
    </f:then>
    <f:else>
        ...
    </f:else>
</ks:ifHasTag>

The Tagging is provided via

  • an Tag Model
  • a TagableInterface
  • a TagableTrait

having all these helper you can add tagging in the matter of minutes

Currently there is no interface for adding tags. Please use the DB.

How to make your Entity tagable


use KayStrobach\Tags\Domain\Model\TagableTrait;

/**
 * @Flow\Entity
 */
class Entity implements TagableInterface
{

    use TagableTrait;
    
    public function __construct()
    {
        $this->initTags();
    }
}