Good Evening´
First of all i like to thank every Dev for this wonderful Forum Software. its been a pleasure to setup so far!
While finalizing the server for my community i encountered something i´d like to change.
I´d like to list every availible nested Primary Tag and more than 3 sub Tags since we have not that great amount of tags combined (25+ ). Sadly my js knowledge is a bit rusted.
sofar i could identify the constructor for the TagList is located in addTagList.js:
sortTags(tags)
.filter(
(tag) => tag.position() !== null && (!tag.isChild() || (currentTag && (tag.parent() === currentTag || tag.parent() === currentTag.parent())))
)
.forEach(addTag);
const more = tags.filter((tag) => tag.position() === null).sort((a, b) => b.discussionCount() - a.discussionCount());
more.splice(0, 3).forEach(addTag);
if (more.length) {
items.add('moreTags', <LinkButton href={app.route('tags')}>{app.translator.trans('flarum-tags.forum.index.more_link')}</LinkButton>, -16);
}
i know i need to change !tag.isChild() and the splice of the array more.splice(0, 3).forEach(addTag);
However i think i need to recompile the whole extention in order to work. Right?
In layman's terms, how can i change the parameters/recompile the extension so i can see every nestedPrimaryTag and and subTag?
BTW why isnt this a convenient option inside the /admin#/extension/flarum-tags Settings?
Thanks in advance
Spezi