[nodebb-plugin-custom-homepage] Basic CMS plugin - custom homepage
-
If I navigate to the custom homepage from any other page, only the sidebar loads. None of the other widgets (header, footer, content) show up and Firefox' Inspector can't seem to find them either.
It does work when directly navigating to the page though, so I'm guessing this must be related to the SPA-ness of NodeBB? -
- When using the "recent view" widget, it defaults to topics from the past day. Since I won't have topics each day, I don't want this to result in a blank page. The "recent post" widget has an option to include the past week or month -- is a similar thing possible with the "recent view" widget?
Created an issue for it, track progress here
- None of the topic lists have a "New Topic" button (hence the widgetized homepage also doesn't have one with the recent view list). Is it possible to add the "New Topic" button to each page (recent posts and popular posts), or manually add it to the custom home page?
I wonder if this script could be re-appropriated for that use
If I navigate to the custom homepage from any other page, only the sidebar loads
I haven't encountered this problem myself, are you completely up to date?
-
@psychobunny said:
I haven't encountered this problem myself, are you completely up to date?
That particular installation was freshly pulled yesterday and this plugin was installed via list of available plugins in the Admin Panel, which I believe just calls npm.
Both https://www.npmjs.org/package/nodebb-plugin-custom-homepage and https://github.com/psychobunny/nodebb-plugin-custom-homepage were last updated a month ago, so unless there is some massive time dilation going on it's probably up to date. -
@julian Thanks for the explanation on where to go to use this (especially for us nodebb noobs)
@psychobunny Great plugin! Can you add a note on your github readme? Thanks! -
@Xiph said:
If I navigate to the custom homepage from any other page, only the sidebar loads.
UPDATE: After some (re)starts it seems to work perfectly fine, though most of the time the aforementioned bug still occurs. Basically, restart 'till ya get lucky.
I checked the console for any particular errors or warnings related to this plugin, but there appear to be none. (although there's plenty of plugins complaining about either staticDirs or callbacked.nodebb-plugin-emoji
seems to find it necessary to print that particular warning a couple billion times) -
@Kamal-Patel In my case the plugin only crashed the instance of NodeBB running and I could just restart it - the plugin was still disabled though, and trying to activate it just results in the same crash.
If restarting doesn't work for you, you can try running./nodebb reset plugins
. That should just disable all plugins. -
@Kamal-Patel said:
How do you manually remove (all?) plugins so that NodeBB can restart safely?
Instead of disabling all plugins, might be better to remove the plugin that caused the problem.
npm remove <insert-plugin-name-here>
should do it. -
A small, trivial issue, but driving me nuts....
Where oh where do i fix this title....
and, i'm a nodebb noob... somewhat....
-
Hey @nexed, I fixed the broken tooltip, update to 0.0.2
-
@psychobunny thanks!
-
@lin It took me a while to figure out this plugin too...
So go to Themes -> Widgets in your admin panel. You will see new template areas starting with the name "Custom HP". Drag and drop your widget elements in there to get started.
Also, this plugin creates a navigation link at the top. "Chat Bubble" icon... click that and it will bring you to your regular nodebb category listing.
-
As @nexed says, this plugin overrides your existing homepage and introduces new widget areas which you can use to populate with... you guess it, widgets!
You can combine this with the
-featured-threads
plugin, to show a specific set of topics on the home page.