[nodebb-plugin-custom-pages] Custom Static pages for NodeBB
-
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
-
@Arc it should work just fine on v0.9.x - it does for me. You have to install it manually via
npm install nodebb-plugin-custom-pages
in yournodebb
directory. -
@Arc try removing the leading slash in the route