View Source Bonfire.Tag (Bonfire v0.9.10-cooperation-beta.108)

An extension for Bonfire that handles:

  • Tagging posts or other things (i.e. with a Category from Bonfire.Classify or a location from Bonfire.Geolocate)
  • @ mentions (WIP)
  • Hashtags (WIP)

Handy commands

Copyright (c) 2020 Bonfire, Haha Academy, and CommonsPub Contributors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Summary

Functions

Add things (Pointer objects) to a tag. You usually want to add tags to a thing instead, see thing_tags_changeset

Add tags to a thing (any Pointer object which defines a many_to_many relation to tag). This function applies to your object schema but is here for convenience.

Functions

Callback implementation for Bonfire.Common.SchemaModule.context_module/0.

Callback implementation for Bonfire.Common.SchemaModule.query_module/0.

Link to this function

tag_things_changeset(tag, things)

View Source

Add things (Pointer objects) to a tag. You usually want to add tags to a thing instead, see thing_tags_changeset

Link to this function

thing_tags_changeset(thing, tags)

View Source

Add tags to a thing (any Pointer object which defines a many_to_many relation to tag). This function applies to your object schema but is here for convenience.