That partial is on all pages that display a list of topics ie /recent /unread /popular and /category pages. You need to create a plugin and add hooks for those pages the hook format is filter:<template_name>.build in those hooks you need to go through the topics array and subtract one from each topic's postcount.
Is it possible to add scripts into a widget template
jiangcaiyang Anime Lovers
I have a widget template called "carousel-3d.tpl", and because carousel-3d depends on jquery, modenizr and other front-end components, I guess is there any way to add scripts into this widget? I tried, but never able to render
extends->widgetspage, it freezes. I know I am a newbie, does anyone could help me solve this problem?
You could try adding those scripts in the Custom Header section from an external CDN
yariplus Community Rep
extends->widgetsfreezes, if you are trying to render the widget in the ACP, you may need to add the dependent scripts to the
acpScriptssection of your
I don't think the Custom Header is executed in the ACP.
jiangcaiyang Anime Loversreplied to psychobunny on last edited by
@psychobunny Custom header is a way, but not good enough, in fact I am writing a plugin which act somewhat like
nodebb-plugin-widgets-essential, that is to add one of our custom widget.