Git Product home page Git Product logo

flarum-ext-id-slug's Introduction

ID Slug by Pipecraft

License Latest Stable Version

English | 中文


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

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

  • 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.*

flarum-ext-id-slug's People

Contributors

pipecraftnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

frost-zx

flarum-ext-id-slug's Issues

您好,我反应一下关于Id Slug无法在FreeFlarum(更新到Flarum1.3.0)中使用的问题

由于FreeFlarum将Flarum版本提升到1.3.0,而这个版本中Flarum默认的主题帖的slug由ID+标题(仅英文)改为了id+标题(标题为汉语拼音)就比如说 https://dipper.freeflarum.com/d/55-guan-yu-yi-ge-yong-yu-lian-luo-ge-di-di-fang-zu-zhi-he-ren-yuan-de-ping-tai-de-jian-li-de-ke-neng-xing-tao-lun/ 。这就使得其URL过于冗长。因此,你的Flarum插件所要发挥的作用就比Flarum更新前所发挥的大得多。

我把你的插件推荐给了FreeFlarum官方。他们把插件安装到了FreeFlarum上。可是我在启用此扩展后,新发布帖子的slug仍为id+标题(标题为汉语拼音)。我也未能在常规设置里找到管理slug的选项。这就意味着你的插件在Flarum1.3.0上面失效了。这个插件目前已经非常重要。希望你能够对其作出修改,使其能够在Flarum1.3.0上面正常运行。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.