• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

tagWhitelist customization

Scheduled Pinned Locked Moved NodeBB Plugins
8 Posts 3 Posters 511 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    george_i
    wrote on last edited by
    #1

    I want to display the category whitelisted tags and I found out how.

    <span>{../tagWhitelist}</span>
    

    The only problem is that the tags have no space after commas, like "abcd,efgh,ijkl" instead of "abcd, efgh, ijkl".
    Is it possible to change this somehow?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    I think tagWhiteList is an array so you can use BEGIN/END. Try this

    <!-- BEGIN tagWhitelist -->
    <span>@value, </span>
    <!-- END tagWhitelist -->
    
    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #3

    New syntax:

    {{{each tagWhiteList}}}
    <span>{@value}</span>
    {{{end}}}
    
    1 Reply Last reply
    0
  • G Offline
    G Offline
    george_i
    wrote on last edited by
    #4

    Thank you both.
    NodeBB is cool. Is there a place where I can find the documentation for the syntax?

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #5

    https://github.com/benchpressjs/benchpressjs/blob/master/docs/readme.md

    G 1 Reply Last reply
    0
  • G Offline
    G Offline
    george_i
    replied to PitaJ on last edited by
    #6

    @PitaJ one last thing. I found that in config I can set the max length of tags, but in the admin section is ignoring it and falls back to 15 characters.
    Is it possible to set for admin too?

    barisB 1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    replied to george_i on last edited by
    #7

    @george_i Please post an issue on our tracker with reproduction steps. Thanks.

    G 1 Reply Last reply
    0
  • G Offline
    G Offline
    george_i
    replied to <baris> on last edited by
    #8

    @baris nevermind, I am new to NodeBB and I was trying to set the max length through an inappropriate method.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development