Tags
Tags provide a flexible labeling system for your directory listings. Unlike categories which are hierarchical, tags are flat labels that can be applied to listings for filtering and visual identification. Tags support custom colors and icons for enhanced display.Get Directory Tags
Retrieve all active tags for a specific directory.directory_id(integer, required): The ID of the directory
Get Single Tag
Retrieve a specific tag by ID.directory_id(integer, required): The ID of the directorytag_id(integer, required): The ID of the tag
Create Tag
Create a new tag in the directory.directory_id(integer, required): The ID of the directory
title(string, required): The tag title (max 255 characters)slug(string, optional): URL-safe slug (lowercase letters, numbers, hyphens only). Auto-generated from title if not providedis_active(boolean, optional): Whether the tag is active (default: true)icon(string, optional): Custom uploaded icon path (max 255 characters)heroicon(string, optional): Heroicon name to use as the tag icon (max 255 characters). Takes priority overiconwhen both are settext_color(string, optional): Text/accent color for the tag display (max 255 characters, e.g. “#FF0000”)show_title(boolean, optional): Whether to display the tag title (default: true)show_icon(boolean, optional): Whether to display the tag icon (default: true)
Update Tag
Update an existing tag.directory_id(integer, required): The ID of the directorytag_id(integer, required): The ID of the tag
title(string, optional): The tag title (max 255 characters)slug(string, optional): URL-safe slug (lowercase letters, numbers, hyphens only)is_active(boolean, optional): Whether the tag is activeicon(string, optional): Custom uploaded icon path (max 255 characters)heroicon(string, optional): Heroicon name to use as the tag icon (max 255 characters)text_color(string, optional): Text/accent color for the tag display (max 255 characters)show_title(boolean, optional): Whether to display the tag titleshow_icon(boolean, optional): Whether to display the tag icon
Delete Tag
Delete a tag from the directory.directory_id(integer, required): The ID of the directorytag_id(integer, required): The ID of the tag
Key Features
Slug Generation
- Slugs are automatically generated from the tag title if not provided
- Slugs must be URL-safe (lowercase letters, numbers, and hyphens only)
Icon Support
- Tags support two types of icons: custom uploaded icons (
icon) and Heroicons (heroicon) - When both are set,
heroicontakes priority for display - Use
show_iconto control icon visibility
Display Customization
text_colorsets the accent color for the tag (useful for color-coded labels)show_titleandshow_iconcontrol which parts of the tag are visible- Combine these options to create icon-only tags, text-only tags, or full tags with both
