• 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.
  • 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
  • phitP Offline
    phitP Offline
    phit
    replied to HolyPhoenix on last edited by
    #65

    @HolyPhoenix yeah works fine for me

    jongarrisonJ 1 Reply Last reply
    1
  • jongarrisonJ Offline
    jongarrisonJ Offline
    jongarrison Plugin & Theme Dev
    replied to phit on last edited by
    #66

    Is anybody else seeing errors and route not found in version 1.0.3 of NodeBB and the latest version of the custom pages plugin (0.3.0)?

    In the logs I'm seeing:

    warn: [hotswap] Could not find router in stack with hotswapId `custom-pages`
    

    Everything works fine if I revert to [email protected]

    frissdiegurkeF vitasllcV 2 Replies Last reply
    0
  • frissdiegurkeF Offline
    frissdiegurkeF Offline
    frissdiegurke Plugin & Theme Dev
    replied to jongarrison on last edited by
    #67

    @jongarrison Since the plugin states "compatibility": "^1.0.4" from that version onwards, I guess there is a known incompatibility with NodeBB@<=1.0.3.

    jongarrisonJ 1 Reply Last reply
    0
  • jongarrisonJ Offline
    jongarrisonJ Offline
    jongarrison Plugin & Theme Dev
    replied to frissdiegurke on last edited by
    #68

    @frissdiegurke Woah! Thanks for pointing that out.

    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