ID Slug

A Flarum extension. Use id as slug in discussion URL.

Compatible with Flarum v1.0.4

Latest release v1.1.0

46 downloads

released on Sep 4, 2021

Tags

ID Slug by Pipecraft

License Latest Stable Version

English | 中文


A Flarum extension. Use id as the slug in the discussion URL.

  • AS-IS:
    • http://exmaple.com/d/123-hello-world
    • http://exmaple.com/d/123-hello-world/3
  • TO-BE:
    • http://exmaple.com/d/123
    • http://exmaple.com/d/123/3

Installation

composer require pipecraft/flarum-ext-id-slug

Updating

composer update pipecraft/flarum-ext-id-slug

How to Use

  1. Install extension
  2. Enable ID Slug extension
  3. Basics > Slug Driver(Discussion) > Select id slug driver

⚠️ Notice

v1.1 VS. v1.0

v1.0

  • It modifies the slug field of the database directly
  • You can use /d/123 and /d/234-hello-world styles at same time if you want
  • Zero configuration

v1.1

  • It uses Slug Driver System. You can switch between the default slug style and id slug style at any time without losing slug data
  • You can't use /d/123 and /d/234-hello-world styles at same time
  • After enabling this extension, you must switch the slug driver on the Basics page

If you want to use the v1.0 version, install the extension like this

composer require pipecraft/flarum-ext-id-slug:1.0.*

© 2021 Hyn by Daniël "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.