Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. its.brad
    I
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    its.brad

    @its.brad

    3
    Reputation
    9
    Posts
    7
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    its.brad Follow

    Best posts made by its.brad

    • RE: Edit teaser text

      There's two things i want to do.

      1. Shorten the teaser text
      2. Pull out a specific link to use as a button

      I think i figured it out though using something like { "hook": "filter:topics.get", "method": "teaserContentShort" }

      var Theme = {
      	teaserContentShort: function (data, callback) {
      		data.topics.forEach(topic => {
      			topic.teaser.contentShort = topic.teaser.content.slice(0,20);
      		});
      
      		callback(null, data);
      	}
      };
      

      It seems to work. Hopefully thats not using the wrong paradigm.

      posted in Technical Support
      I
      its.brad
    • RE: Custom homepage template

      @jtsimoes Maybe, things like that don't generally feel powerful enough for my needs. If i create a theme I'd like to have more control of the homepage. I'll play around with it though.

      posted in NodeBB Development
      I
      its.brad
    • RE: Custom homepage template

      Thanks, but yeah again, im looking for a file on disk that i can version control and share across the team. Seems that may not be possible though.

      posted in NodeBB Development
      I
      its.brad

    Latest posts made by its.brad

    • Child theme warning

      I have a child theme that is a fork of quickstart that i installed via npm link. How do i resolve this warning?

      warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run `./nodebb reset -p PLUGINNAME` to disable it.
        * nodebb-theme-custom
      
      posted in Technical Support
      I
      its.brad
    • RE: Edit teaser text

      There's two things i want to do.

      1. Shorten the teaser text
      2. Pull out a specific link to use as a button

      I think i figured it out though using something like { "hook": "filter:topics.get", "method": "teaserContentShort" }

      var Theme = {
      	teaserContentShort: function (data, callback) {
      		data.topics.forEach(topic => {
      			topic.teaser.contentShort = topic.teaser.content.slice(0,20);
      		});
      
      		callback(null, data);
      	}
      };
      

      It seems to work. Hopefully thats not using the wrong paradigm.

      posted in Technical Support
      I
      its.brad
    • Edit teaser text

      I've modified topics_list to display the teaser under the title. However, i would like to further edit the teaser. I'm wondering about the best approach to do something like this. I'm thinking

      posted in Technical Support
      I
      its.brad
    • RE: Custom homepage template

      Thanks, but yeah again, im looking for a file on disk that i can version control and share across the team. Seems that may not be possible though.

      posted in NodeBB Development
      I
      its.brad
    • RE: Custom homepage template

      @jtsimoes I guess my question is more "where is home.tpl"? I think that is from nodebb-theme-quickstart

      posted in NodeBB Development
      I
      its.brad
    • RE: Custom homepage template

      What does this refer too?

      Screen Shot 2019-02-05 at 2.25.08 PM.png

      posted in NodeBB Development
      I
      its.brad
    • RE: Custom homepage template

      @jtsimoes Maybe, things like that don't generally feel powerful enough for my needs. If i create a theme I'd like to have more control of the homepage. I'll play around with it though.

      posted in NodeBB Development
      I
      its.brad
    • RE: Custom homepage template

      @jtsimoes Thanks. I'd prefer not to have to code via, and be confined to the containers of, the widgets. Is there any way to have direct access to the HTML like i do with custom themes?

      posted in NodeBB Development
      I
      its.brad
    • Custom homepage template

      Is there a way to have a simple homepage template (e.g. home.tpl), without needing the nodebb-plugin-custom-homepage plugin? I see references to it in some older posts but not sue what the current state is.

      posted in NodeBB Development
      I
      its.brad