\TaggingExtension
This extension will automatically be applied to pages, allowing searchable content tagging.
@author Nathan Glasl <nathan@symbiote.com.au>
Synopsis
class TaggingExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- // methods
- public void updateSearchableFields()
- public void updateCMSFields()
- public void onBeforeWrite()
Hierarchy
Extends
- DataExtension
Members
private
-
$db
The tagging will be directly stored in a database field, allowing search without needing to parse the fusion tags relationship. -
$many_many
The tagging will need to use a unique relationship name, otherwise there are issues around configuration merge priority.
Methods
public
- onBeforeWrite() — Update the tagging to reflect the change, allowing searchable content.
- updateCMSFields() — Display the appropriate tagging field.
- updateSearchableFields() — Update the searchable fields and model admin filtering, allowing CMS searchable content tagging.