SallyMelek this will require the use of the Flarum javascript extension API.
You have two solutions:
- Fork Tags extension
- Use the
extend()
helper to modify the Tags extension's components
Depending how many changes you need to make, it might make more sense to fork, but this could mean more work later to keep up with new Flarum versions as you would need to run diffs/merges between the original extension and your fork. Using the extend()
API you don't need to copy everything from the Tags extension, but you might need advanced knowledge of how to manipulate Mithril's virtual nodes to insert text in places Flarum did not design for extensibility.
Adding the text could be done with either solution. But as described above, it's one of those situations where if using an extension you will probably need to manipulate the virtual nodes because there is no extension anchor at that place.
To change the filtering and sorting, it would probably be easier to fork and modify the code responsible for it directly.