[nodebb-plugin-custom-pages] Custom Static pages for NodeBB
-
@RazorAxis, exactly. If you're just needing to add static content and want that integrated into the forum, it's a perfect solution. Personally, I use it to list winners of forum games. Sort of a "Hall of Fame"
-
@Ted said:
@RazorAxis, exactly. If you're just needing to add static content and want that integrated into the forum, it's a perfect solution. Personally, I use it to list winners of forum games. Sort of a "Hall of Fame"
What are these forum games you soeak of? They sound like fun. I plan on running contests too. Maybe not be a bad idea to have them listed out on another page.
-
@RazorAxis, my users like to pitch in a steam key or something small, and we'll have a some sort of contest or sorts, and we'll divvy up prizes.
-
I'm having issues on getting this to work on v.0.7.x . I create the static page, and when I go into the widgets section to add HTML to the content, the HTML never shows. I'm able to navigate to the page I created, but it's a blank page and the HTML I placed in the content section does not appear.
Is there another way I can create a static page with just HTML? Should I just go into /public/templates and create an HTML page?
Ping @psychobunny
-
Hi, i have same problem @JonDoe12
Routing works fine but Nodebb doesn't see my tpl files.
I tried to place tpl files into "/NodeBB/node_modules/nodebb-plugin-custom-pages/templates" and "/NodeBB/public/templates" but nothing happens.
Reboot nodebb does n't helps
-
Hi ,
i have same problem... -
-
Updated for NodeBB 0.7.0
New in 0.7x: Routes are no longer automatically added to the header. If you want to add an icon/text link to the header to your new route, visit General -> Navigation and use the drag and drop interface to do so.
-
Thanks @psychobunny !
However I just looked on github and have the same problem.When i refresh the page here is what i got :
Internal error.
Oops! Looks like something went wrong!
/plante
Failed to lookup view "plante" in views directory "/root/mynodebb/public/templates" -
The issue you linked is slightly different from what you're experiencing. He has a problem with ajaxify'ing into the page, but you're having a problem with cold load refreshes.
1 - Are you on latest NodeBB
2 - Did you restart? Routes and templates are regenerated on initialization -
@psychobunny said:
NodeBB 0.7.0
Thanks for your answer,
yep, i got the last one.
In fact, i can see that the page is loading just as the guy say it in the link and then stop loading, and nothing display.
Then when i try to refresh, this is the message that i had ^^. -
Figured out how to repro that bug and fixed it in latest version
-
@psychobunny, can you fix this issue Internal server error on opening page #10?
-
AFAIK this problem appears because the plugin doesn't creates the .tpl file in your theme templates. So you can copy homepage.tpl from nodebb-plugin-custom-pages/templates to [yourtheme]/templates directory and name it like you named your page in ACP (mypage.tpl) as temporary solution.
-
@psychobunny when I install the plugin, I get the same internal error as reported in issue #10. For example:
-
@psychobunny which version are you referring to?
npm install nodebb-plugin-custom-pages
still produces this error. Is there a more recent version of the plugin available? -
@henrywright Try this:
cd ~/NodeBB/node_modules npm remove nodebb-plugin-custom-pages && rm -rf nodebb-plugin-custom-pages git clone https://github.com/rbeer/nodebb-plugin-custom-pages git checkout tplCopyIssue