club-1 / flarum-ext-cross-references
Add cross reference links when a discussion is mentioned from another one.
Installs: 160
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 10
Type:flarum-extension
Requires
- php: >=7.3
- flarum/core: ^1.2.0
Requires (Dev)
- flarum/testing: ^1.0.0
This package is auto-updated.
Last update: 2023-02-03 16:26:33 UTC
README
A Flarum extension. Add cross reference links when a discussion is mentioned from another one.
Features
This extension is mainly inspired by GitHub cross linking features. It adds similar features to Flarum forums.
- EventPost in target discussion:
- is created when a post referencing it is saved
- links back to the source and displays its title
- shows the ID of the source (option)
- shows the primary tags of the source (option)
- shows the secondary tags of the source (option)
- Links in source discussion:
- are changed to show the title of target discussion when the text is the same as the href
- have
(comment)
indication if it points to a specific comment - load the target discussion faster as they use the FrontEnd Router
- are shown in the preview the way they will be seen once posted
- are automatically created from
#<id>
text (e.g.#42
) (option) - are auto-completed with a selection box when
#
is entered - show the ID of the target (option)
- show the primary tags of the target (option)
- show the secondary tags of the target (option)
- Discussion list:
- shows the ID of the discussions (option)
- HeaderRow
- shows the ID of the discussion (option)
Installation
Install with composer:
composer require club-1/flarum-ext-cross-references:"*"
Updating
composer update club-1/flarum-ext-cross-references:"*"
php flarum migrate
php flarum cache:clear