shaarli_plugins/auto_tag_plugin
2024-12-04 14:42:12 +00:00
..
auto_tag_plugin.meta add(autotag): add meta description 2024-11-22 11:52:02 +00:00
auto_tag_plugin.php update(AutoTag) new tags and remove spaces at the start of tags textfield 2024-12-04 14:37:24 +00:00
README.md doc(AutoTag): create doc for my plugin 2024-12-04 14:42:12 +00:00

Auto Tag Plugin

Overview

The Auto Tag Plugin automatically tags links based on their content using pre-configured keyword-to-tag mappings. It ensures consistent and relevant tagging while saving time.

Features

  • Automatically adds tags to links based on title, URL, description, and content.
  • Fully customizable keyword-to-tag mappings.
  • Adds a fixed tag (auto-tagged) to all processed links.

Usage

  1. Install: Copy the plugin files into your Shaarli plugin directory and enable it in the admin panel.
  2. Configure: Add your keyword-to-tag mappings in the Shaarli configuration file:
    'plugins' => [
        'AUTO_TAG_KEYWORDS' => [
            'docker,kubernetes' => 'containers,devops',
            'privacy,security' => 'privacy-and-security',
            'automation,scripting' => 'automation,productivity',
        ],
    ],
    

How It Works

  1. Analyze: The plugin checks the link's title, URL, description, and content for keywords.
  2. Tag: Matches are scored, and relevant tags are applied (up to 7 by default).
  3. Save: Tags are saved with the link, including the fixed auto-tagged tag for identification.

FAQ

What if no keywords match?
No tags will be added, except for auto-tagged.

Can I disable auto-tagging for some links?
You can manually edit the tags after saving.

Is external content stored?
No, the content is analyzed only during the tagging process.

License

This plugin is open-source and distributed under the MIT License.