• 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

Edit system template

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 1.3k 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.
  • herrausragendH Offline
    herrausragendH Offline
    herrausragend
    wrote on last edited by herrausragend
    #1

    Hey,

    I set up nodeBB v1.5.2 with MongoDB & Redis behind Cloudflare (just fyi).

    I would like to edit the existing template account/edit.tpl.
    For this I tried editing the build/public/templates/account/edit.tpl but the template is getting resetted every time reloading nodeBB.
    I assume, the build directory gets generated every time the system reloads.

    The second attempt was to change the edit.tpl in src/views/account/edit.tpl but the same effect as above occured. (I also tried deleting the file build/public/templates/account/edit.tpl)

    Nontheless, new files in src/views/... like src/views/account/edit/custom.tpl will get applied to build/public/templates/... after restarting.

    Which is the correct way to edit existing templates in nodeBB?

    Thanks a lot!

    What I've tried (overview)

    • edit build/public/templates/account/edit.tpl > nope
    • edit src/views/account/edit.tpl > nope
    • delete build/public/templates/account/edit.tpl & edit src/views/account/edit.tpl > nope
    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    You probably want to edit account/edit.tpl for whichever theme you're using. For instance, if you're using persona, it would be node_modules/nodebb-theme-persona/templates/account/edit.tpl.

    Be aware, these changes will be overwritten whenever persona is updated. The most correct way is to create a child theme of persona and make your template changes there, but that is more complicated.

    1 Reply Last reply
    1
  • herrausragendH Offline
    herrausragendH Offline
    herrausragend
    wrote on last edited by
    #3

    Oh! My bad that I haven't thought of this... I'll try it out.

    Thanks for the fast response! 🙂

    1 Reply Last reply
    1
  • herrausragendH Offline
    herrausragendH Offline
    herrausragend
    wrote on last edited by
    #4

    Works like a charm, thanks again!

    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