[nodebb-plugin-custom-pages] Custom Static pages for NodeBB
-
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