• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[nodebb-plugin-custom-pages] Custom Static pages for NodeBB

Scheduled Pinned Locked Moved NodeBB Plugins
pagestaticcmscustom
122 Posts 44 Posters 85.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • leksarL Offline
    leksarL Offline
    leksar
    wrote on last edited by
    #45

    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.

    henrywrightH 2 Replies Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to psychobunny on last edited by
    #46

    @psychobunny when I install the plugin, I get the same internal error as reported in issue #10. For example:

    error

    1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to psychobunny on last edited by
    #47

    @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?

    G 1 Reply Last reply
    0
  • G Offline
    G Offline
    Guiri
    replied to Henry Wright on last edited by
    #48

    @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
    
    henrywrightH 1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to Guiri on last edited by
    #49

    @Guiri doesn't the clone URL need a .git on the end?

    1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to leksar on last edited by
    #50

    @leksar I tested this (copying the template file to the location where it's missing) and it worked. Thanks for sharing

    1 Reply Last reply
    0
  • henrywrightH Offline
    henrywrightH Offline
    Henry Wright
    replied to leksar on last edited by
    #51

    @leksar Actually, I found a problem with that. After a forum restart, mypage.tpl is automatically deleted which results in the error appearing again.

    1 Reply Last reply
    0
  • G Offline
    G Offline
    Guiri
    wrote on last edited by
    #52

    Yes, I forgot the .git extension. You might need to manually delete and re-create the template in the system with the new branch. I don't remember, unfortunately, but it's been stable for a week now without a hiccup.

    1 Reply Last reply
    0
  • G Offline
    G Offline
    Guiri
    wrote on last edited by
    #53

    Anybody know if there's a clever way to override the global sidebar using bootstrap or CSS? Since there's no longer a homepage route, my sidebar is in the global tpl. But for the custom page, I'd really like to be able to replace those.

    1 Reply Last reply
    0
  • ArcA Offline
    ArcA Offline
    Arc
    wrote on last edited by
    #54

    Is there any chance we can get this working on 0.9.x, or is this pretty well not working at the moment?

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Arc on last edited by
    #55

    @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 your nodebb directory.

    ArcA 1 Reply Last reply
    1
  • ArcA Offline
    ArcA Offline
    Arc
    replied to PitaJ on last edited by
    #56

    @PitaJ It doesnt seem to, sadly.

    0_1454440469959_chrome_2016-02-02_12-13-31.png

    It installed fine, and looked all good:

    0_1454440490014_chrome_2016-02-02_12-13-48.png

    0_1454440495568_chrome_2016-02-02_12-13-56.png

    But after 3 restarts, one hard ./nodebb stop and ./nodebb start, and a reload:

    0_1454440550542_chrome_2016-02-02_12-14-14.png

    Simply no luck.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Arc on last edited by PitaJ
    #57

    @Arc try removing the leading slash in the route

    ArcA 1 Reply Last reply
    1
  • ArcA Offline
    ArcA Offline
    Arc
    replied to PitaJ on last edited by
    #58

    @PitaJ ... Of course it'd be something that simple.

    Thanks!

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Arc on last edited by
    #59

    @Arc no problem. I've found that slashes in routes can cause lots of problems in NodeBB core and plugins

    ArcA 1 Reply Last reply
    1
  • ArcA Offline
    ArcA Offline
    Arc
    replied to PitaJ on last edited by
    #60

    @PitaJ One more question, that I'm sure is just me using bad syntax again- how do you change the pageTitle? Name of page isnt working.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to Arc on last edited by
    #61

    @Arc are you referring to the title displayed in the tab? I think that that feature isn't implemented yet, but not exactly sure.

    ArcA 1 Reply Last reply
    1
  • ArcA Offline
    ArcA Offline
    Arc
    replied to PitaJ on last edited by
    #62

    @PitaJ Yeah. I can mod it with JS, but that's a nightmare from a web crawler standpoint. I guess I'll mod it in from the .tpl file, thanks!

    1 Reply Last reply
    0
  • ArcA Offline
    ArcA Offline
    Arc
    wrote on last edited by
    #63

    Update for future generations:

    Modifying page title in JS like so:

    <script> document.title = 'TITLE HERE'; </script>

    Actually isnt as bad as everyone says it is. Google lists it fine.

    1 Reply Last reply
    0
  • HolyPhoenixH Offline
    HolyPhoenixH Offline
    HolyPhoenix Anime Lovers
    wrote on last edited by
    #64

    Any idea if this is working in version 1?

    phitP 1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development