How can I set the browser title for my map page to "Map | NodeBB"? Pl. guide.
cool
Posts
-
Adding a new page -
Conditional inclusion of HTML content in the plugin's template fileI am writing a plugin. I want that certain HTML included to be displayed only when a user clicks a particular URL (one among the several URLs). How can I achieve this?
-
Using a module written in ES6I am using a third-party library named leaflet in my custom-plugin's front end JS code.
Now I need to use a leaflet plugin named leaflet-geosearch which is written in ES6 and it is dependent on a number of other packages like Babel precompiler (that compiles ES6 to ES5 code).
https://github.com/smeijer/leaflet-geosearch
Can I use it in my client side JS code? If yes, how? How can I set up the environment. Can anybody help me put on the track?
Thanking you in anticipation.
-
Custom plugin: Which is better jQuery post Or socket.emit and Why?I am done with this. If somebody needs help for this topic, he/she may send a notification to me.
-
How to get rid of this warning: Unable to read plugin.json for plugin `nodebb-plugin-custom-plugin`Duke ... Thank you. This command solved the problem:
./nodebb reset -p nodebb-plugin-map
-
Error while including a third party JS module in my pluginThis is how I resolved the error:
requirejs.config({ shim: { jquery: { exports: '$' } } }); requirejs(["jstree"], function(jstree) { ... }
It may help somebody if she needs to integrate the jstree (popular jQuery plugin) with NodeBB in future.
-
How to include the images that are referred from inside a third party css?I am using a jQuery plugin module named jstree.js which I included in the "modules" section of the plugin.json.
Now the jstree has a css file which I can include under the "css" or "less" section of the plugin.json. And the NodeBB engine will minifiy and include its contents in the stylesheet.css. So far so good!
But this css file refers to certain images (files) and expect that they should reside in the same folder as stylesheet.css. But the build process doesn't copy the images folder at the same level where it copies the stylesheet.css.
How can I overcome this issue. A proper solution from you guys will be highly appreciated.
Thanks and Regards