# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=90

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 91

---

## [Add a global header between Discourse & Website](https://meta.discourse.org/t/add-a-global-header-between-discourse-website/154776)

<div class="topic-metadata">

**Author:** [@jord8on](https://meta.discourse.org/u/jord8on)\
**Replies:** 0\
**Last updated:** [June 13, 2020, 10:34pm UTC](https://meta.discourse.org/t/add-a-global-header-between-discourse-website/154776 "2020-06-13T22:34:31Z")

</div>

We’d like to have a modern and responsive header that is accessible on our Discourse site and our Wordpress site. My question could be respective to any other platform out there (for the main website) I just happen to be…

---

## [How to organize code entered from the head tag?](https://meta.discourse.org/t/how-to-organize-code-entered-from-the-head-tag/154708)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 10:10pm UTC](https://meta.discourse.org/t/how-to-organize-code-entered-from-the-head-tag/154708 "2020-06-12T22:10:45Z")

</div>

I am adding a variety of code to my discourse forum that generally is meant to run when various pages load. So far, I’ve just been adding it to the head tag in my customization dashboard, and it works fine. However, now…

---

## [How do I make changes to app/views/layouts/?](https://meta.discourse.org/t/how-do-i-make-changes-to-app-views-layouts/154489)

<div class="topic-metadata">

**Author:** [@DBHacker](https://meta.discourse.org/u/DBHacker)\
**Replies:** 9\
**Last updated:** [June 13, 2020, 7:35am UTC](https://meta.discourse.org/t/how-do-i-make-changes-to-app-views-layouts/154489 "2020-06-13T07:35:28Z")

</div>

Quick simple question: Surely, I am missing some brain cells! We made a few edits in the app container in one of the files in the /var/www/discourse/app/views/layouts directory. Then, we thought (like dummies) we cou…

---

## [Font Awesome 5 solid icon are not working](https://meta.discourse.org/t/font-awesome-5-solid-icon-are-not-working/154556)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 10:08pm UTC](https://meta.discourse.org/t/font-awesome-5-solid-icon-are-not-working/154556 "2020-06-11T22:08:57Z")

</div>

The other like regular or brand are work well. The solid icon just not display and no any related console error. Please look my example below. {{! template.hbs }} \<div\> solid {{d-icon "fa-mobile"}} {{d-i…

---

## [How to execute JS after post content has rendered?](https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035)

<div class="topic-metadata">

**Author:** [@Sparky](https://meta.discourse.org/u/Sparky)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 8:51am UTC](https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035 "2020-06-11T08:51:19Z")

</div>

I found api.decorateCookedElement, and I see the note about afterAdopt: true, but that doesn’t get where I’m trying to go. I’m trying to measure the offset of content within the main topic body with getBoundingClientRec…

---

## [How do I add tags via the post api endpoint](https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418)

<div class="topic-metadata">

**Author:** [@Ghazal\_Taimur](https://meta.discourse.org/u/Ghazal_Taimur)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 9:50pm UTC](https://meta.discourse.org/t/how-do-i-add-tags-via-the-post-api-endpoint/154418 "2020-06-10T21:50:39Z")

</div>

I need to add a tags in my post api. How i do this? I have already tried with tags array parameter in my api. But the post is created without any tag. I also add minimum tags check in admin settings. Then it gives me a…

---

## [Adding new content type to discourse](https://meta.discourse.org/t/adding-new-content-type-to-discourse/154190)

<div class="topic-metadata">

**Author:** [@Ahmed\_Abdelfattah](https://meta.discourse.org/u/Ahmed_Abdelfattah)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 4:27pm UTC](https://meta.discourse.org/t/adding-new-content-type-to-discourse/154190 "2020-06-10T16:27:28Z")

</div>

Is it possible to develop a plugin for discourse to add a new content type (e.g. books), this object would have a profile with some information and attributes and users can link their posts to a particular object via tag…

---

## [How to hide the last post date on homepage](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402)

<div class="topic-metadata">

**Author:** [@SForum](https://meta.discourse.org/u/SForum)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 11:52am UTC](https://meta.discourse.org/t/how-to-hide-the-last-post-date-on-homepage/154402 "2020-06-10T11:52:22Z")

</div>

Is there a setting to hide the last post date on threads on the homepage? E.g when it says 1d for example. Or is custom CSS needed for this?

---

## [Theme-Component v Plugin: What's the difference](https://meta.discourse.org/t/theme-component-v-plugin-whats-the-difference/153951)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 22\
**Last updated:** [June 9, 2020, 9:51pm UTC](https://meta.discourse.org/t/theme-component-v-plugin-whats-the-difference/153951 "2020-06-09T21:51:14Z")

</div>

Can someone clarify the difference between these three Discourse concepts: theme-component, plugin, and pluginAPI. Especially between theme-component and plugin. If I want to customize my forum, how do I know which to b…

---

## [How to use API key in AJAX call?](https://meta.discourse.org/t/how-to-use-api-key-in-ajax-call/154243)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 6\
**Last updated:** [June 9, 2020, 12:52pm UTC](https://meta.discourse.org/t/how-to-use-api-key-in-ajax-call/154243 "2020-06-09T12:52:11Z")

</div>

I am trying to programmatically get back information about a group from the discourse API. I have the code for this in my customize dashboard, under \< /head\>. I am the admin of my forum. It’s not working, and I think it…

---

## [Call Discourse routes from inside the plugin (Ruby API)](https://meta.discourse.org/t/call-discourse-routes-from-inside-the-plugin-ruby-api/154286)

<div class="topic-metadata">

**Author:** [@Stefan\_Brighiu\_M](https://meta.discourse.org/u/Stefan_Brighiu_M)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 11:14am UTC](https://meta.discourse.org/t/call-discourse-routes-from-inside-the-plugin-ruby-api/154286 "2020-06-09T11:14:40Z")

</div>

How can I call a discourse api route from inside a custom plugin? I want to make the call directly between the plugin and the backend, and i want to do it from a custom ruby controller. I am trying to make a custom rout…

---

## [How different are Ember component and Discourse widget?](https://meta.discourse.org/t/how-different-are-ember-component-and-discourse-widget/154174)

<div class="topic-metadata">

**Author:** [@hawm](https://meta.discourse.org/u/hawm)\
**Replies:** 3\
**Last updated:** [June 8, 2020, 4:17pm UTC](https://meta.discourse.org/t/how-different-are-ember-component-and-discourse-widget/154174 "2020-06-08T16:17:36Z")

</div>

I’m working on a plugin that need some modal dialog, both Ember component and Discourse widget may implement it i konw after search on meta. The Ember component and Discourse widget both can be attach to plugin outlet, r…

---

## [Hiding Brand Header still leaves blank space?](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665)

<div class="topic-metadata">

**Author:** [@sophspages](https://meta.discourse.org/u/sophspages)\
**Replies:** 2\
**Last updated:** [June 7, 2020, 1:09pm UTC](https://meta.discourse.org/t/hiding-brand-header-still-leaves-blank-space/312665 "2020-06-07T13:09:40Z")

</div>

Thank you for this great component! I don’t want it to show to non logged in users so I have added this in the CSS of the component: .b-header { display: block; } .anon .b-header { display: none; } It works but …

---

## [Schema Error \[Discourse Forum Posting\] in SDTT](https://meta.discourse.org/t/schema-error-discourse-forum-posting-in-sdtt/154062)

<div class="topic-metadata">

**Author:** [@puneetverma](https://meta.discourse.org/u/puneetverma)\
**Replies:** 0\
**Last updated:** [June 7, 2020, 4:09am UTC](https://meta.discourse.org/t/schema-error-discourse-forum-posting-in-sdtt/154062 "2020-06-07T04:09:19Z")

</div>

When testing Discourse forum’s any discussion in Google Structured Data Testing Tool then there are a lot of warnings and error shown in Schema. How to fix this?

---

## [Can I use the JSON API instead of building a plugin?](https://meta.discourse.org/t/can-i-use-the-json-api-instead-of-building-a-plugin/153998)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 3\
**Last updated:** [June 6, 2020, 9:50am UTC](https://meta.discourse.org/t/can-i-use-the-json-api-instead-of-building-a-plugin/153998 "2020-06-06T09:50:23Z")

</div>

I’m pursuing some customizations (such as described here and here) that seem to require a solid understanding of Ember and Rails and also how the underlying Discourse codebase fits together. As a result, it’s been slow …

---

## [How do I use my validator in the plugin?](https://meta.discourse.org/t/how-do-i-use-my-validator-in-the-plugin/140839)

<div class="topic-metadata">

**Author:** [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)\
**Replies:** 4\
**Last updated:** [June 5, 2020, 8:41pm UTC](https://meta.discourse.org/t/how-do-i-use-my-validator-in-the-plugin/140839 "2020-06-05T20:41:53Z")

</div>

Please help me guys How do I use my validator in the plugin? i added file in my plugin lib/validators/plugin\_ldap\_setting\_validator.rb use in settings.yml forum\_ldap\_validation: default: 'system' validato…

---

## [Where is the code for pinning topics in categories?](https://meta.discourse.org/t/where-is-the-code-for-pinning-topics-in-categories/153970)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 0\
**Last updated:** [June 5, 2020, 6:24pm UTC](https://meta.discourse.org/t/where-is-the-code-for-pinning-topics-in-categories/153970 "2020-06-05T18:24:40Z")

</div>

The trickiest thing I’ve encountered so far in trying to develop with Discourse is simply finding where the code resides that handles a given view or action. Could be bc I’m new to Ember–or perhaps its the nature of Embe…

---

## [Trying to understand launcher as a series of Docker commands](https://meta.discourse.org/t/trying-to-understand-launcher-as-a-series-of-docker-commands/153861)

<div class="topic-metadata">

**Author:** [@EricGT](https://meta.discourse.org/u/EricGT)\
**Replies:** 0\
**Last updated:** [June 4, 2020, 7:22pm UTC](https://meta.discourse.org/t/trying-to-understand-launcher-as-a-series-of-docker-commands/153861 "2020-06-04T19:22:14Z")

</div>

I am trying to understand the Docker commands issued by launcher. This also requires understanding the other bash commands in the script. As I am no bash expert I have to do some research to figure some parts. Normally …

---

## [Discourse with DO managed Redis](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776)

<div class="topic-metadata">

**Author:** [@AAverin](https://meta.discourse.org/u/AAverin)\
**Replies:** 2\
**Last updated:** [June 5, 2020, 4:18am UTC](https://meta.discourse.org/t/discourse-with-do-managed-redis/153776 "2020-06-05T04:18:10Z")

</div>

I am planning a production setup for my Discourse installation and I would like to externalise database and redis. In discourse\_docker/samples/web\_only.yml at master · discourse/discourse\_docker · GitHub I see variables…

---

## [S3 configuration expectations between global and site settings](https://meta.discourse.org/t/s3-configuration-expectations-between-global-and-site-settings/153766)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 0\
**Last updated:** [June 4, 2020, 3:13am UTC](https://meta.discourse.org/t/s3-configuration-expectations-between-global-and-site-settings/153766 "2020-06-04T03:13:03Z")

</div>

I have a discourse instances where, months after initially creating the instance, we enabled “S3” (in our case, digital ocean spaces) for a while, only via admin settings, and never with any DISCOURSE\_ config options in …

---

## [Best strategy for finding the right template to edit?](https://meta.discourse.org/t/best-strategy-for-finding-the-right-template-to-edit/153598)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 8\
**Last updated:** [June 3, 2020, 4:02pm UTC](https://meta.discourse.org/t/best-strategy-for-finding-the-right-template-to-edit/153598 "2020-06-03T16:02:30Z")

</div>

I’m still new to Discourse, but learning more about how to code on top of it to customize things. I’m trying to learn the best way to insert code in particular spots on a page (more targeted than in a general outlet area…

---

## [CSS selector for the Category Page Latest Post column?](https://meta.discourse.org/t/css-selector-for-the-category-page-latest-post-column/85922)

<div class="topic-metadata">

**Author:** [@BlackKnob](https://meta.discourse.org/u/BlackKnob)\
**Replies:** 3\
**Last updated:** [June 3, 2020, 7:40pm UTC](https://meta.discourse.org/t/css-selector-for-the-category-page-latest-post-column/85922 "2020-06-03T19:40:43Z")

</div>

I need to remove the border on the bottom of the Latest Posts column of the main Category Page. The following doesn’t work: div.latest-topic-list-item:last-child {border-bottom-style: none;} For some reason this is th…

---

## [Over zealous hiding of plugin outlet?](https://meta.discourse.org/t/over-zealous-hiding-of-plugin-outlet/153721)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 4\
**Last updated:** [June 3, 2020, 6:59pm UTC](https://meta.discourse.org/t/over-zealous-hiding-of-plugin-outlet/153721 "2020-06-03T18:59:05Z")

</div>

Team, The plugin outlet: user-card-location-and website is hidden hasLocaleOrWebsite is false if user hasn’t entered a vanilla location or website, which hides the outlet (you can see this on the plugin outlets theme…

---

## [Best way to add verified third-party accounts to profile](https://meta.discourse.org/t/best-way-to-add-verified-third-party-accounts-to-profile/153166)

<div class="topic-metadata">

**Author:** [@cookieman768](https://meta.discourse.org/u/cookieman768)\
**Replies:** 8\
**Last updated:** [June 2, 2020, 5:41am UTC](https://meta.discourse.org/t/best-way-to-add-verified-third-party-accounts-to-profile/153166 "2020-06-02T05:41:39Z")

</div>

Basically, I’m trying to let users verify that they’re the owner of some social accounts that don’t have OpenID or OAuth (Riot account for example). What would be the best approach for doing so? Would it be possible to h…

---

## [How to add action for button in plugin](https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383)

<div class="topic-metadata">

**Author:** [@wyudong](https://meta.discourse.org/u/wyudong)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 4:25pm UTC](https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383 "2020-05-31T16:25:48Z")

</div>

I want to make a plugin to show a button and do some action. The button can already be displayed at the desired place, but I don’t know how to create a custom action for it. The file structure is like followings: plugin…

---

## [Removal of ember-addons/ember-computed-decorators](https://meta.discourse.org/t/removal-of-ember-addons-ember-computed-decorators/132977)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 12\
**Last updated:** [February 20, 2020, 4:30pm UTC](https://meta.discourse.org/t/removal-of-ember-addons-ember-computed-decorators/132977 "2020-02-20T16:30:23Z")

</div>

@markvanlan The move of the decorators from ember-addons/ember-computed-decorators to discourse-common/utils/decorators is about to break a number of plugins and themes as soon as folks hit the big blue update button. h…

---

## [Topic Status API](https://meta.discourse.org/t/topic-status-api/153221)

<div class="topic-metadata">

**Author:** [@Roragok](https://meta.discourse.org/u/Roragok)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 4:48pm UTC](https://meta.discourse.org/t/topic-status-api/153221 "2020-05-29T16:48:26Z")

</div>

I’m working on a few API calls for the topic status I can close a topic just fine, but none of the other options seem to reopen it. Am i missing something dumb or is that not an option? or is there a better way. The…

---

## [How to call a function when hitting /login and already logged in](https://meta.discourse.org/t/how-to-call-a-function-when-hitting-login-and-already-logged-in/152104)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 10:14pm UTC](https://meta.discourse.org/t/how-to-call-a-function-when-hitting-login-and-already-logged-in/152104 "2020-05-28T22:14:36Z")

</div>

I’ve got a thinkific plugin that logs into thinkific when a user logs in to Discourse. If a user tries to log in to thinkific (and thinkific is so configured) they are redirected to Discourse. If they are not logged in t…

---

## [Assets:precompile is giving error](https://meta.discourse.org/t/assets-precompile-is-giving-error/150316)

<div class="topic-metadata">

**Author:** [@Puja\_Garg](https://meta.discourse.org/u/Puja_Garg)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 10:50am UTC](https://meta.discourse.org/t/assets-precompile-is-giving-error/150316 "2020-05-28T10:50:37Z")

</div>

Hi, I am trying to run rake assets:precompile RAILS\_ENV=production but getting error saying brotli -f --quality=11 /Users/synup/synup/discourse/public/assets/vendor-7fd29296ee54f8a7ced9508b106a09ec4aae4912ed1cf10eceb7e…

---

## [Calling Discourse API throws SSLHandshakeException](https://meta.discourse.org/t/calling-discourse-api-throws-sslhandshakeexception/152908)

<div class="topic-metadata">

**Author:** [@Saurabh\_Khandelwal](https://meta.discourse.org/u/Saurabh_Khandelwal)\
**Replies:** 5\
**Last updated:** [May 27, 2020, 1:25pm UTC](https://meta.discourse.org/t/calling-discourse-api-throws-sslhandshakeexception/152908 "2020-05-27T13:25:55Z")

</div>

Hello all, Our Discourse Forum is configured with SSL Protocol: TLSv1.2 and Strong Cipher Suites: TLS\_ECDHE\_ECDSA\_WITH\_AES\_256\_GCM\_SHA384 While calling Discourse API using Apache httpclient from Liferay 6.2 Framework …

[Previous page](https://meta.discourse.org/c/dev/7.md?page=89)

[Next page](https://meta.discourse.org/c/dev/7.md?page=91)
