Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. templates
    Log in to post
    • E

      customizing email templates
      Technical Support • email email notification emails templates • • eileen

      4
      0
      Votes
      4
      Posts
      48
      Views

      julian

      All of our translation efforts are handled on Transifex (https://www.transifex.com/nodebb/nodebb/), but in general, yes... fixes and incorrect translations would be handled there, and custom changes specific to your community you'd make to those files directly.

    • fais3000

      Global footer widget appearing before footers of other pages.
      Bug Reports • persona theme templates widgets • • fais3000

      3
      0
      Votes
      3
      Posts
      999
      Views

      fais3000

      @pitaj https://github.com/NodeBB/NodeBB/issues/6199

      fais3000 created this issue in NodeBB/NodeBB closed Global footer widget appearing before footers of other pages. #6199
    • A

      How to use "posts api"
      Technical Support • help templates • • Airee

      3
      0
      Votes
      3
      Posts
      1677
      Views

      A

      @yariplus said in How to use "posts api":

      {posts.post.user.sso-steam:steamid}

      Thank you, yari!

    • henrywright

      Required markup
      Technical Support • templates • • Henry Wright

      5
      1
      Votes
      5
      Posts
      1958
      Views

      henrywright

      @julian how about running one huge find and replace job? Wait... on second thoughts maybe not ha

    • henrywright

      List of templates available
      Technical Support • templates • • Henry Wright

      4
      0
      Votes
      4
      Posts
      2213
      Views

      julian

      Also /src/views/, for ACP templates

    • henrywright

      Using custom templates
      Technical Support • templates • • Henry Wright

      2
      0
      Votes
      2
      Posts
      1399
      Views

      julian

      Yessir 😉

    • drew

      Nested Template Inheritance
      Feature Requests • feature request templates • • drew

      4
      0
      Votes
      4
      Posts
      1613
      Views

      henrywright

      @henrywright said:

      this idea wouldn't work if > 1 line change

      I was referring to my idea of making a manual 1-line change to the theme core at the point of each upgrade. That would avoid you having to use Git to merge in new commits each upgrade.

      Again, although not a clean way of working, it sounds like it'll be easier than what you're currently doing.

    • henrywright

      SOLVED Is it possible to override templates?
      Technical Support • templates • • Henry Wright

      7
      0
      Votes
      7
      Posts
      2420
      Views

      henrywright

      @julian Got ya. Thanks for the heads up

    • epidemiya30

      UNSOLVED Expose custom fields to be used in templates
      NodeBB Development • custom fields templates • • Vlad Mashkin

      3
      0
      Votes
      3
      Posts
      1570
      Views

      epidemiya30

      For example, I would like to replace username on topic, like shown on the screenshot:Image 1.png

    • Nicolas

      Dynamic Templates via Settings
      Plugin Development • dynamic plugin templates • • Nicolas

      5
      0
      Votes
      5
      Posts
      2039
      Views

      Nicolas

      My case is to provide text-area for the user in ACP, so user for example can "change template" of rendering list item.

      For example one possible solution:

      Store template markup in settings, and ask user to reload NodeBB. In static:load use file system instruments to rewrite template.

      But I'm not happy with such solution 😉

    • drew

      Banner on the home page
      General Discussion • design templates widget • • drew

      6
      0
      Votes
      6
      Posts
      3025
      Views

      julian

      I suppose we could add a widget area for the index page template...

    • Dustin Falgout

      Is it possible to display previews from child categories when the parent has no posts?
      NodeBB Development • homepage lavender templates • • Dustin Falgout

      12
      1
      Votes
      12
      Posts
      5922
      Views

      Dustin Falgout

      @julian Right, I understand. It just makes it difficult to migrate from a more traditional forum like phpBB (which is the most, or perhaps second-most, used forum software today). I think making it easier to migrate from phpBB's format could only help nodeBB gain more ground 🙂 Here is the github issue I opened a couple weeks ago. It was closed, though I hope we can reopen it. I'm more than willing to contribute. Let me know if there's anything I can do.

      https://github.com/NodeBB/NodeBB/issues/2549#issuecomment-69857946

      lots0logs created this issue in NodeBB/NodeBB closed Posts from child categories are not shown on the home page. #2549
    • P

      How to get subcategories from home.tpl?
      Technical Support • templates • • priapo

      2
      0
      Votes
      2
      Posts
      1972
      Views

      P

      Ok, this works

      <!-- IF categories.children.length --> <!-- BEGIN children --> <!-- IF @first -->(Sub-forums: <!-- ENDIF @first --> <a href="\{relative_path\}/category/{categories.children.slug}" itemprop="url">{categories.children.name}</a> <!-- IF !@last --> &middot; <!-- ENDIF !@last --> <!-- IF @last -->)<!-- ENDIF @last --> <!-- END children --> <!-- ENDIF categories.children.length -->

      Just put it somewhere between <!-- BEGIN categories --> and <!--END categories --> in home.tpl

      And take both \ from {relative_path}.. it seems that nodebb parses it... so I had to type...

    • mootzville

      Understanding the templating engine & middleware
      General Discussion • engine middleware templates • • mootzville

      3
      0
      Votes
      3
      Posts
      1983
      Views

      mootzville

      Ya, so I was dumb...I have a local dev instance and a staging server. I was playing around with some things and forgot to switch the theme back to vanilla which explains why I was missing the navbar for the login screen...boo me.

      But yes, thanks for pointing that out. The template engine and middleware are making a lot more sense now after looking through the source for the last 2 days...

      I'm going to start looking to add/update the documentation here soon...some of the stuff can drive you crazy if you aren't familiar with the version changes.

      Also, after reading through most of core at this point I have to say it's an impressive piece of kit. Thumbs up to the core devs. @julian @baris @psychobunny

      EDIT: Also, anyone else who comes across this thread...if you really want to save yourself some time banging your head against the wall -- like I did -- take a few days to really dive into the nodebb source. It has been a good lesson in object-oriented javascript -- so many objects 🙂 -- done right. I've realized I'm approaching things more from a functional perspective, so this has been an eye opener for me.

    • B

      [QUESTION] Plugin ACP templates relative URLs
      NodeBB Development • folder installs plugin relative urls templates • • bentael

      5
      0
      Votes
      5
      Posts
      2172
      Views

      julian

      @bentael yes, I believe that is the case.