Search by

uams-web / aether-knowledge-base

joshdaughertybpmore

Knowledge bases and knowledge base tags for UAMS Statamic sites.

Package info

github.com/UAMS-Web/aether-knowledge-base

Type:statamic-addon

pkg:composer/uams-web/aether-knowledge-base

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-11-29 06:10 UTC

This package is auto-updated.

Last update: 2026-12-01 15:16:55 UTC


README

A Statamic add-on that holds knowledge bases and knowledge base tags for UAMS Statamic sites. It is one of the Aether add-ons: each owns one area of content, so that the sites which need it share one implementation.

What it provides

  • Blueprints for the knowledge_bases collection (knowledge_base, topic and article) and the knowledge_base_tags collection (knowledge_base_tag), served under each collection's own handle through Blueprint::addNamespace. The collections themselves, their routes and their entries stay in the host's content.
  • Views for the knowledge base, topic and article templates, their partials and the mount-redirect error partial, served after the host's own views so a host copy still wins.
  • The topics block, uamsweb_block_kb_topics, with its fieldset and views, registered with the page builder (uams-web/aether-page-builder).
  • Query scopes: knowledge_base_only, knowledge_base_topic_only, knowledge_base_article_children, knowledge_base_subtree_articles and valid_article_parent.
  • Tags: mounted_knowledge_bases and knowledge_base_mount_redirect.
  • Listeners that validate a knowledge base entry and its tree when saved, and that keep mounted knowledge base URIs in step with their mount-parent pages.
  • Computed fields on knowledge_bases: the structural flags and counts, the ancestor-inherited settings, and the article view and like counts.
  • Article engagement: the kb.articles.view and kb.articles.react endpoints (/!/kb/articles/{id}/view and /react), their kb-engagement rate limiter and the article_engagement_counts table.

What stays in the host

Four things need the host application and are not provided here. A host that installs the add-on wires them:

  • The entry class. UAMSWebAetherKnowledgeBase\Entries\KnowledgeBaseEntry must be the class Statamic builds knowledge_bases entries as, on every read path (the entry contract binding and the Stache store). The add-on cannot bind it without replacing the host's own binding for every other collection.
  • The sitemap inclusion computed for knowledge_bases, which reads the host's orphaned-ancestor resolver.
  • The Control Panel strings under messages.knowledge_bases_collection_create_entry.
  • The article engagement script and styles, which the host's front-end build compiles.

docs/DECISIONS.md records why each stays.

Requirements

  • PHP 8.4 or later
  • Statamic 6.35 or later
  • uams-web/aether-page-builder 0.1 or later, which the add-on registers its block with
  • uams-web/patches-statamic-cms 1.4 or later in the host, which serves a collection's blueprints from an add-on (UAMS-Web/uams-statamic#1608)

Installation

composer require uams-web/aether-knowledge-base

The package is listed under extra.laravel.providers in composer.json, so a host application discovers its service provider (UAMSWebAetherKnowledgeBase\ServiceProvider) with no further step.

To change the add-on's settings, publish its configuration file to the host's config/ directory:

php artisan vendor:publish --tag=aether-knowledge-base-config

License

MIT. See LICENSE.

Development

Developing against a host application is covered in the development guide, and the Packagist and Marketplace steps in the submission checklist. The reasons behind the repository's decisions are in the decision log.