Getting the hostname/base_url in a template



  • Hey guys. I'm new to nodebb & really happy to found such a promising project but since i want a more specialized style than the default themes/skins i'm customizing the templates atm. I'm currently trying the get the hostname with no success. I googled around and found that I should use {url} but when I try to use it in the template of a plugin (nodebb-plugin-featured-topics-extended) i only get an empty string in the produced html. Somebody know a good way? I would like to dodge the bullet to dive deep into the source code :scream:


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.