Here you go!
https://community.nodebb.org/topic/9447/howto-inject-hidden-data-into-composer/8
This should get you started. You'll need to edit the composer.tpl, or inject html at composer load, checking if the post is a new topic.
Category slug consist cid and slugify category name.
var slug = cid + '/' + utils.slugify(data.name);
Is it possiable give a custom setting like this?
var extSlug = custSlug || utils.slugify(data.name);
var slug = cid + '/' + extSlug;
While custSlug set at category setting page.
@niro i want to know too~
Does anyone show how to make it right ?
Hi all, are there any solution for this ?
@niro hi, have you solved this problem out ?
@Jam No
You should be able to modify the slug in the hook 'filter:category.update'
Which is where the slug is set.
https://github.com/NodeBB/NodeBB/blob/c9f285a883104cb87802fae8c5d321dea8154680/src/categories/update.js#L32-L36