@shlomi pls read it
https://community.nodebb.org/topic/16400/2-0-compatible-plugins
Relatively simple and straightforward plugin detailing how to set up a simple static page. The example here uses a lightbox script which with a bit of work could easily turn into a mini photo album plugin for NodeBB. Any takers?:)
Install via NPM:
npm install nodebb-plugin-static-page
You'll need the latest bleeding-edge version of NodeBB (0.0.8 or later) for this plugin to work.
Pyschobunny is this going to be developed any further as it would be very useful to be able to edit this from admin panel so that it can be set up as a terms/privacy page? or as you suggested a gallery page.
Hey, I found this plugin very useful to me, just 1 question: how can I remove a pagination progress bar on top for static pages?
Hm, that sounds like a bug related to the static page plugin. Tagging @psychobunny.
@dove, does the latest version (or more specifically, this issue, which has since been fixed), solve your problem?
@julian yes, it is fixed now. Thanks
I refactored this plugin and updated it to show an example of serving more than one static page for @xCausxn hope it helps somebody else
Pyschobunny is this going to be developed any further as it would be very useful to be able to edit this from admin panel so that it can be set up as a terms/privacy page? or as you suggested a gallery page.
I'd love it if somebody wants to take this plugin and make it work like that. Combine this with the sample admin page plugin and we have a winner I think. I don't really have the time right now though (maybe on plugin weekends :p)
@psychobunny Thank You
I hope you have not forgotten this plugin.
https://github.com/designcreateplay/NodeBB/issues/849
Once this is fixed static pages will allow to be ajaxified.
Did someone get multiple pages to work? If so could they tell me how? (Could it be done with an array? Sorry I don't know NodeJS, I just know JS in general.)
@planner I believe @psychobunny just pushed an update to this plugin
@pillows have a look at the latest code, I put up two pages as an example
@pillows I have got this to work mate, easy once @psychobunny helped me out (Those Updates He Pushed :P). However if you just want extra nav bar links i recommend nodebb-plugin-42
if https://github.com/designcreateplay/NodeBB/issues/913 includes custom JS scripts, I will kill -42, BUT will either fork this static plugin, or create a new one to be able to add external links, static-pages, from the Admin panel, without the need to hard code templates in the plugin it self.
@bentael Would Be awesome
: / not working with .4?
also.. github source is down.. any chance to know how its suposse to work
Hey @leonardo-galani I believe the static-pages plugin was taken down because there is a newer way to define static pages now. Please see these lines. It is listening to the action:app.load
hook, and defines routes.
'nodebb-plugin-kitchen-sink' is not in the npm registry
404 not found
Anyone else run into this issue?
@Tanner kitchen sink was removed a while ago in place for a different addon, this one I believe.