just-better/bard-link-suggestions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

just-better/bard-link-suggestions

Composer 安装命令:

composer require just-better/bard-link-suggestions

包简介

Add's functionality to the bard so that it suggests links.

README 文档

README

JustBetter logo A Statamic addon that adds **link suggestions** to the Bard editor.

While you type in Bard, this addon searches for possible links and shows a dropdown of suggestions. Suggestions are sourced from:

  • Statamic entries (based on configurable fields per collection)
  • Sitemaps (URLs indexed from one or more sitemap XML files)

Requirements

  • Statamic v6
  • Laravel 12+
  • PHP 8.3+
  • Statamic Eloquent Driver (this package queries entries via Eloquent/Stache)

Installation

Install the package via Composer:

composer require just-better/bard-link-suggestions

Run the migrations:

php artisan migrate

Usage

Once installed, Bard will start requesting suggestions while you type.

  • Suggestions appear after typing 3+ characters of the current word (debounced).
  • Clicking a suggestion turns the current word into a link.
  • Only super users and users with the marketeer flag will see suggestions.

Configuration (Control Panel)

Go to the Control Panel settings page:

  • JustBetter → Suggestions settings

On this page you can configure:

  • Queryable fields per collection: choose which entry fields should be searched.
  • Sitemap URLs: add one or more sitemap XML URLs (per Statamic site).

Sitemap indexing

Sitemap suggestions are backed by a database table that stores URLs extracted from your sitemap(s).

Index all configured sitemaps using:

php artisan statamic-bard-suggestions:index-sitemaps

Notes:

  • Indexing runs via the queue. Make sure a queue worker is running.
  • When you update sitemap settings, indexing/pruning jobs are dispatched automatically.

Quality

To ensure the quality of this package, run:

composer quality

This will execute:

  1. Tests
  2. Static analysis
  3. Code style checks

Testing

composer test

Credits

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The MIT License (MIT). Please see License File for more information.

JustBetter logo

统计信息

  • 总下载量: 322
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固