Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)
[nodebb-plugin-custom-pages] Custom Static pages for NodeBB
-
I get incorrect urls for the "recent view" module (v0.4.1):
mydomain.com/%7Bconfig.relative_path%7D/topic/2/foo-bar
-
@psychobunny thanks a lot
-
I created a static page for displaying my privacy policy and TOS.
I added some contents to the page in the Widgets tab.
But when I navigate to the page, it is empty. No content is being shown.
Can anyone help me with this. Thanks a lot..!
-
Have you tried doing a
./nodebb build tpl
and then restarting NodeBB? Not sure if that will fix it, but worth a shot. -
@julian
I am using a hosted solution. So I don't have access to command line.
Any other ideas? -
Hi @Vamsi-Krishna, just following up here as well that we've received your support ticket and have addressed your issue. Let us know via support if you have any other questions.
Thanks!
-
After upgrading nodebb from v1.5.2 to v1.6.0 and updating the plugin to 0.5.3, the layout of some (but not all) of my custom pages are messed up!
- Sidebar is below the content
- The global footer is shown twice
- In case of a page footer, the global footer is shown on top of the page footer
Any hints or ideas?
-
After looking deeper into the issues, I found the root cause of the first two issues in an invalid html code inside the container of one of my used widgets! So no plugin or v1.6.0 problem
!
The third issue "In case of a page footer, the global footer is shown on top of the page footer" seem to be a valid finding. But it is not critical for me. I will raise a bug on github.
-
How can i set Path to Page to /
It won' t save.
-
I think you're doing it backwards, you'll want to set the home page of the site to your custom page via "General -> Home page"
-
I want a custom page for / ie www.test.com not www.test.com/pagename.
If I klick the logo it works but if i reload the browser or enter the link www.test.com it redirects to www.test.com/pagename.
I only want a standard custom homepage just like the custom hompage plugin worked, am i missing something here @julian
-
I can only create 19 pages. If I make another page it doesn't save it.
I'm on nodeBB 1.6.1 has anybody this problem also? And does somebody know how to fix?
-
(@MJ late reply, but this has been fixed in the latest plugin and NodeBB core btw)
-
@psychobunny : Can you please look into https://github.com/NodeBB-Community/nodebb-plugin-custom-pages/issues/57. It seems the latest version 1.10.2 has an issue at least in some installations
. Many thanks in advance!
-
Should be fixed in 1.0.2 of this plugin
-
Hello !
I need to change some bootstrap classes in custom-page.tpl (to change sidebar dynamical width for example as I have already done it in my own theme templates files). I can do it directly in nodebb-plugin-custom-pages/templates/custom-page.tpl but it will be replaced on each package upgrade... Not great !
Is there another way to do it without this problem ?
Thanks in advance !
-
@alfazaz Use the plugin nodebb-plugin-customize to avoid the overwriting problem
-
@MJ I tried it but without success (tried to create a diff for custom-page.tpl and also for my already created custom page accueil.tpl ; it doesn't work even after rebuild). I'm on the latest nodebb version.
-
I tried to override custom-page.tpl (and also accueil.tpl generated by custom-pages) with a plugin but... no success...
I think I'm going to fork the module (fork modules to change templates : bof bof...)
-
This plugin should expose a new page that you can customize with widget areas, is that not what is showing up?