Skip to main content

Summary

The tag cube allows to add labels to an entity as a simple yet powerful way to classify your content. Tags can be used to refine a search using facets.

It is a CubicWeb component. CubicWeb is a semantic web application framework, see http://www.cubicweb.org

Install

Auto-install from sources is preferred with pip/Distribute:

pip install cubicweb-tag

If you have troubles, use easy_install/setuptools and eggs:

easy_install cubicweb-tag

You can install the package manually from the uncompressed tarball:

python setup.py install # auto-install dependencies

If you don’t want the dependencies to be installed automatically, you can force the setup to use the standard library distutils:

NO_SETUPTOOLS=1 python setup.py install

More details at http://www.cubicweb.org/doc/en/admin/setup

Usage

To allow tags on an entity type, you must allow the tags relation between Tag and your entity type(s).

For instance to activate the tag functionality on Person, Company and Division entity type, one should add to his schema:

from yams.buildobjs import RelationDefinition
class tags(RelationDefinition):
    subject = 'Tag'
    object = ('Person', 'Company', 'Division')

You should then see the tags box appearing on the primary view for entities of those type. The`TagsBox` display tags applied to the entity but also provides an easily way to add / remove tags, if you’ve the permission to do so.

More views

  • The SimilarEntitiesBox shows some entities which share the most tags together

  • The TagsCloudView, a classical, displaying a set of tags appearing more or less big according to the number of tagged entities. It’s used by the TagsCouldBox, which is not visible by default (user can activate it using their preferences) but that you can activate by default using the code snippet below:

    from cubicweb_tag.views import TagsCloudBox
    # make the tags cloud box visible by default
    TagsCloudBox.visible = True
  • The primary view for tags provides a tags merging interface to site administrators, very useful to manage tags on a site where people tend to express the same thing with different words, or spelling.

Documentation

Look in the doc/ subdirectory or read http://www.cubicweb.org/doc/en/

Release files for cubicweb-tag 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-tag 3.1.1
File Size Uploaded
cubicweb_tag-3.1.1.tar.gz 46.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cubicweb-tag 3.1.1
File Interpreter ABI Platform
cubicweb_tag-3.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 92.0 kB

Release files / cubicweb_tag-3.1.1.tar.gz

Download URL cubicweb_tag-3.1.1.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c38348d585034dbcbca87fce325d96497fd073c5aec5afc98ceec8a9960394aa
BLAKE2b-256 checksum
How to use checksums
07f74a57a7d742887c9e271d7c51ae169421e698301274b3c4d8537cb2a53a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / cubicweb_tag-3.1.1-py3-none-any.whl

Download URL cubicweb_tag-3.1.1-py3-none-any.whl
Size 45.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52480e7fde176cec13f052620d75fbfa3db650a6d1d88853dfdfcb34eb9889c5
BLAKE2b-256 checksum
How to use checksums
ff3ad35cb6c3747676ec00768e4bd242cb4ba9b802a1fc93e82dadb005781971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

3.1.1 This release

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.11.0

2 release files

1.9.2

1 release file

1.9.1

1 release file

1.9.0

1 release file

1.8.3

1 release file

1.8.2

1 release file

1.8.1

1 release file

1.8.0

1 release file

1.7.1

1 release file

1.6.0

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page