# Development

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

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

**Page:** 71

---

## [Post Cooking Process with Landing Pages](https://meta.discourse.org/t/post-cooking-process-with-landing-pages/208352)

<div class="topic-metadata">

**Author:** [@sharewoodsDavid](https://meta.discourse.org/u/sharewoodsDavid)\
**Replies:** 0\
**Last updated:** [November 5, 2021, 10:24am UTC](https://meta.discourse.org/t/post-cooking-process-with-landing-pages/208352 "2021-11-05T10:24:58Z")

</div>

Hello, I’m trying to figure why post cooking isn’t working for the Landing Pages plugin and how I could get it working (if possible) without altering the plugin but if I had to, what could I do ? Ruby is not my forte. O…

---

## [Migrate/Convert WP Posts to Discourse Topics](https://meta.discourse.org/t/migrate-convert-wp-posts-to-discourse-topics/208201)

<div class="topic-metadata">

**Author:** [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)\
**Replies:** 3\
**Last updated:** [November 4, 2021, 2:10pm UTC](https://meta.discourse.org/t/migrate-convert-wp-posts-to-discourse-topics/208201 "2021-11-04T14:10:29Z")

</div>

I have a Knowledge Base plugin on WordPress whose custom posts I’d like to replace with self-hosted Discourse Topics, coded in markdown. It would be ideal if the tags could be migrated as well. @angus mentioned in my pr…

---

## [Add (Datadog APM) initializer in custom plugin?](https://meta.discourse.org/t/add-datadog-apm-initializer-in-custom-plugin/155804)

<div class="topic-metadata">

**Author:** [@raph](https://meta.discourse.org/u/raph)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 4:20pm UTC](https://meta.discourse.org/t/add-datadog-apm-initializer-in-custom-plugin/155804 "2021-11-02T16:20:43Z")

</div>

Hi all! First time poster, sorry if I got the category wrong. I’d like to configure discourse for Datadog APM instrumentation and figured it would make sense to use a custom plugin for this purpose (following the idea o…

---

## [Problem displaying webview](https://meta.discourse.org/t/problem-displaying-webview/207810)

<div class="topic-metadata">

**Author:** [@Muhammed\_EKİCİ](https://meta.discourse.org/u/Muhammed_EK%C4%B0C%C4%B0)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 9:57am UTC](https://meta.discourse.org/t/problem-displaying-webview/207810 "2021-11-02T09:57:52Z")

</div>

We want to use discourse as a webview in a part of our native application, but we are having a problem with js. Webview application has js enabled but the forum cannot be displayed properly. How can i solve this problem.…

---

## [Trouble setting up dev Discourse on WSL2 with Docker - solved](https://meta.discourse.org/t/trouble-setting-up-dev-discourse-on-wsl2-with-docker-solved/207640)

<div class="topic-metadata">

**Author:** [@Alexander\_Wright](https://meta.discourse.org/u/Alexander_Wright)\
**Replies:** 3\
**Last updated:** [October 30, 2021, 11:41am UTC](https://meta.discourse.org/t/trouble-setting-up-dev-discourse-on-wsl2-with-docker-solved/207640 "2021-10-30T11:41:42Z")

</div>

Continuing the discussion from Beginners Guide to Install Discourse for Development using Docker: I’ve Windows 10 installed with WSL2 and Ubuntu 20.04. I’ve installed Docker and verified the installation with a simple …

---

## [Apple M1, Docker arm64 emulation](https://meta.discourse.org/t/apple-m1-docker-arm64-emulation/177590)

<div class="topic-metadata">

**Author:** [@Walker\_Blackwell](https://meta.discourse.org/u/Walker_Blackwell)\
**Replies:** 27\
**Last updated:** [October 29, 2021, 9:33pm UTC](https://meta.discourse.org/t/apple-m1-docker-arm64-emulation/177590 "2021-10-29T21:33:47Z")

</div>

Where do I specify --platform linux/arm64 in the ./launcher rebuild app sequence? I need to test Discourse/Docker locally on M1. Would be great to set this until such point as ARM build is fully implemented. best rega…

---

## [API: Seach for posts with images and then retrieve detailed post data with search's post\_ids](https://meta.discourse.org/t/api-seach-for-posts-with-images-and-then-retrieve-detailed-post-data-with-searchs-post-ids/207390)

<div class="topic-metadata">

**Author:** [@Sören\_Geier](https://meta.discourse.org/u/S%C3%B6ren_Geier)\
**Replies:** 1\
**Last updated:** [October 29, 2021, 9:24am UTC](https://meta.discourse.org/t/api-seach-for-posts-with-images-and-then-retrieve-detailed-post-data-with-searchs-post-ids/207390 "2021-10-29T09:24:51Z")

</div>

Hi Discourse folks, I am currently building a feature where I want to display a small teaser grid at the top of the page that displays “interesting” posts/topics in a grid format. I am not sure maybe there is something …

---

## [Require accepting new terms (after changes) as a modal inside forum](https://meta.discourse.org/t/require-accepting-new-terms-after-changes-as-a-modal-inside-forum/207456)

<div class="topic-metadata">

**Author:** [@tjot](https://meta.discourse.org/u/tjot)\
**Replies:** 4\
**Last updated:** [October 29, 2021, 1:52am UTC](https://meta.discourse.org/t/require-accepting-new-terms-after-changes-as-a-modal-inside-forum/207456 "2021-10-29T01:52:34Z")

</div>

I have a forum that is integrated with my website using DiscourseConnect. When a user creates an account on my website and clicks on the forum link, he gets a forum account and he is automatically logged in to the forum…

---

## [Plugin stylesheets must use CSS custom properties for colors](https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440)

<div class="topic-metadata">

**Author:** [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Replies:** 4\
**Last updated:** [October 28, 2021, 8:36pm UTC](https://meta.discourse.org/t/plugin-stylesheets-must-use-css-custom-properties-for-colors/195440 "2021-10-28T20:36:53Z")

</div>

In a few days, I will merge this PR in core that makes a change to how plugin stylesheets are compiled. The change affects SCSS color variables used in plugin stylesheets. The tl;dr is that they need to be replaced with …

---

## [How to debug? \`Compiler said: ReferenceError: console is not defined\`](https://meta.discourse.org/t/how-to-debug-compiler-said-referenceerror-console-is-not-defined/207317)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 11:59pm UTC](https://meta.discourse.org/t/how-to-debug-compiler-said-referenceerror-console-is-not-defined/207317 "2021-10-27T23:59:40Z")

</div>

I’ve seen on two different sites lately with this error. Now this is on my development site with a plugin that is working in production. . . Is this what I’m supposed to do instead of console.log? EDIT: So apparently…

---

## [Discourse API - whitelist IP](https://meta.discourse.org/t/discourse-api-whitelist-ip/207307)

<div class="topic-metadata">

**Author:** [@4ong](https://meta.discourse.org/u/4ong)\
**Replies:** 0\
**Last updated:** [October 27, 2021, 9:53pm UTC](https://meta.discourse.org/t/discourse-api-whitelist-ip/207307 "2021-10-27T21:53:33Z")

</div>

Is it possible to whitelist possible IPs for API keys? Thank you!

---

## [Change login link param (return\_path)](https://meta.discourse.org/t/change-login-link-param-return-path/207246)

<div class="topic-metadata">

**Author:** [@tjot](https://meta.discourse.org/u/tjot)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 8:10pm UTC](https://meta.discourse.org/t/change-login-link-param-return-path/207246 "2021-10-27T20:10:31Z")

</div>

I’ve implemented DiscourseConnect in my forum with success, but now I need to display terms of service. My idea was to show a modal with terms and an accept button, something like a cookie consent), but I couldn’t find …

---

## [Save custom field value from edit topic area?](https://meta.discourse.org/t/save-custom-field-value-from-edit-topic-area/207069)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 10:53pm UTC](https://meta.discourse.org/t/save-custom-field-value-from-edit-topic-area/207069 "2021-10-25T22:53:17Z")

</div>

Hi There. Using the code that @angus has laid out here, and following the github repo, I’m able to get the topic custom field working well–except for enabling it to be edited in the “header” area of the composer (where y…

---

## [Getting categories on your website via JS](https://meta.discourse.org/t/getting-categories-on-your-website-via-js/206948)

<div class="topic-metadata">

**Author:** [@Akash\_Joshi](https://meta.discourse.org/u/Akash_Joshi)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 8:41am UTC](https://meta.discourse.org/t/getting-categories-on-your-website-via-js/206948 "2021-10-25T08:41:46Z")

</div>

Hey all! This is not a question post, just wanted to contribute something I had been searching for quite frequently, but figured out myself. Basically, if you want to get any website-related data on the client side, you…

---

## [Add an icon in front of wikis in the topic list?](https://meta.discourse.org/t/add-an-icon-in-front-of-wikis-in-the-topic-list/206888)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 1\
**Last updated:** [October 24, 2021, 1:38pm UTC](https://meta.discourse.org/t/add-an-icon-in-front-of-wikis-in-the-topic-list/206888 "2021-10-24T13:38:33Z")

</div>

There is no specific CSS class in the topic list. Is it possible by editing the topic list template?

---

## [Hot reload for plugin development?](https://meta.discourse.org/t/hot-reload-for-plugin-development/186218)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 19\
**Last updated:** [October 23, 2021, 10:39pm UTC](https://meta.discourse.org/t/hot-reload-for-plugin-development/186218 "2021-10-23T22:39:17Z")

</div>

Hi All. Apologies if this has been addressed (I didn’t find it): Developing a discourse plugin on my local machine tends to be pretty slow. Each reload of my locally running app (to view code changes) takes over 5 secon…

---

## [Setting default tag per category in a theme component](https://meta.discourse.org/t/setting-default-tag-per-category-in-a-theme-component/206458)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [October 22, 2021, 3:17pm UTC](https://meta.discourse.org/t/setting-default-tag-per-category-in-a-theme-component/206458 "2021-10-22T15:17:45Z")

</div>

If you’re visiting /tags/category-slug/tag-name and click the New Topic button, the composer has the tag pre-set, as described here: This is awesome. But now I (and at least one other person) want to be able to set thi…

---

## [Api get all topics](https://meta.discourse.org/t/api-get-all-topics/206543)

<div class="topic-metadata">

**Author:** [@Mohamed\_Kbiri\_Alaoui](https://meta.discourse.org/u/Mohamed_Kbiri_Alaoui)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 9:32am UTC](https://meta.discourse.org/t/api-get-all-topics/206543 "2021-10-21T09:32:11Z")

</div>

hi how can i get all topics from Api , i used forum.com/latest.json but still get just latest 30 topics

---

## [\`site-logo\` missing width/height](https://meta.discourse.org/t/site-logo-missing-width-height/206390)

<div class="topic-metadata">

**Author:** [@Stanzilla](https://meta.discourse.org/u/Stanzilla)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 11:06am UTC](https://meta.discourse.org/t/site-logo-missing-width-height/206390 "2021-10-19T11:06:06Z")

</div>

Looks like the site-logo does not have a width/height attribute by default, it gets a width if you start scrolling down though. This is only minor but causes Lighthouse to complain regarding layout shifts.

---

## [Using PHP library to retrieve latest topics from a specific category](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334)

<div class="topic-metadata">

**Author:** [@PeterBrightt](https://meta.discourse.org/u/PeterBrightt)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 8:02am UTC](https://meta.discourse.org/t/using-php-library-to-retrieve-latest-topics-from-a-specific-category/206334 "2021-10-19T08:02:22Z")

</div>

Hello everyone! I just found this library and I’m ready to use it. My goal is to get the latest 20 topics from a specific category (actually I’ll use some kind of filtering for that from which category to get these topi…

---

## [Website Integration](https://meta.discourse.org/t/website-integration/206316)

<div class="topic-metadata">

**Author:** [@PeterBrightt](https://meta.discourse.org/u/PeterBrightt)\
**Replies:** 7\
**Last updated:** [October 18, 2021, 11:04am UTC](https://meta.discourse.org/t/website-integration/206316 "2021-10-18T11:04:42Z")

</div>

Hello everybody! I just installed Discourse on my new website and everything looks great except that I also need a website and not only community forum. I recently saw this website which perfectly describes my expectati…

---

## [Specifying the gem dependecies for plugin - gem does not exist](https://meta.discourse.org/t/specifying-the-gem-dependecies-for-plugin-gem-does-not-exist/65878)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 11\
**Last updated:** [October 14, 2021, 4:29pm UTC](https://meta.discourse.org/t/specifying-the-gem-dependecies-for-plugin-gem-does-not-exist/65878 "2021-10-14T16:29:30Z")

</div>

I did go through the suggesstions in following posts So I tried 2 ways Specifying in plugin.rb file My plugin depends upon “mini\_magick” for image resizing, so I specified it in plugin.rb gem ‘mini\_magick’, ‘~\> …

---

## [Backup fails on localhost with docker](https://meta.discourse.org/t/backup-fails-on-localhost-with-docker/196015)

<div class="topic-metadata">

**Author:** [@max-elia](https://meta.discourse.org/u/max-elia)\
**Replies:** 9\
**Last updated:** [October 13, 2021, 8:58pm UTC](https://meta.discourse.org/t/backup-fails-on-localhost-with-docker/196015 "2021-10-13T20:58:02Z")

</div>

I’m having issues with creating a backup from the admin section, running discourse from the docker container on localhost. The error I’m getting is: pg\_dump: error: connection to database "discourse development" failed…

---

## [Discourse as a CMS for a Jekyll site](https://meta.discourse.org/t/discourse-as-a-cms-for-a-jekyll-site/205919)

<div class="topic-metadata">

**Author:** [@pacharanero](https://meta.discourse.org/u/pacharanero)\
**Replies:** 5\
**Last updated:** [October 13, 2021, 1:53pm UTC](https://meta.discourse.org/t/discourse-as-a-cms-for-a-jekyll-site/205919 "2021-10-13T13:53:25Z")

</div>

I’m a big user of both Discourse and Jekyll, and recently I’ve been experimenting with trying to use a Discourse instance as a content management system for a Jekyll static site. I have only just begun playing around wit…

---

## [Ruby 3 support related to mocha gem](https://meta.discourse.org/t/ruby-3-support-related-to-mocha-gem/205409)

<div class="topic-metadata">

**Author:** [@yahonda](https://meta.discourse.org/u/yahonda)\
**Replies:** 4\
**Last updated:** [October 12, 2021, 1:35pm UTC](https://meta.discourse.org/t/ruby-3-support-related-to-mocha-gem/205409 "2021-10-12T13:35:11Z")

</div>

I have another topic to support Ruby 3. Steps to reproduce $ bundle exec rspec ./spec/lib/backup\_restore/database\_restorer\_multisite\_spec.rb:15 Actual result with Ruby 3.0.2 $ ruby -v ruby 3.0.2p107 (2021-07-07 revisio…

---

## [One of TopicEmbed.import spec fails with Ruby 3](https://meta.discourse.org/t/one-of-topicembed-import-spec-fails-with-ruby-3/205358)

<div class="topic-metadata">

**Author:** [@yahonda](https://meta.discourse.org/u/yahonda)\
**Replies:** 2\
**Last updated:** [October 10, 2021, 1:23pm UTC](https://meta.discourse.org/t/one-of-topicembed-import-spec-fails-with-ruby-3/205358 "2021-10-10T13:23:24Z")

</div>

I’d like to get some help about failing TopicEmbed.import spec with Ruby 3. Steps to reproduce cd discourse bundle exec rspec ./spec/models/topic\_embed\_spec.rb:154 Expected behavior It should finish successfully. Actu…

---

## [How to implement "raw-plugin-outlet"](https://meta.discourse.org/t/how-to-implement-raw-plugin-outlet/178385)

<div class="topic-metadata">

**Author:** [@Bich\_Phan](https://meta.discourse.org/u/Bich_Phan)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 9:19pm UTC](https://meta.discourse.org/t/how-to-implement-raw-plugin-outlet/178385 "2021-10-08T21:19:16Z")

</div>

Hello, i see {{~raw-plugin-outlet name="topic-list-before-status"}} in topic-list-item.hbr file i want to implement it in my plugin but can not could anybody help me ?

---

## [Silence user via Admin API can't setup reason string](https://meta.discourse.org/t/silence-user-via-admin-api-cant-setup-reason-string/150612)

<div class="topic-metadata">

**Author:** [@romulo](https://meta.discourse.org/u/romulo)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 3:14pm UTC](https://meta.discourse.org/t/silence-user-via-admin-api-cant-setup-reason-string/150612 "2020-05-06T15:14:36Z")

</div>

I had follow the API doc to make the silence request via Admin SDK, it is working, the user got silenced but didn’t change the reason string for silence. The request: PUT: /admin/users/{id}/silence Payload: { "message…

---

## [Silence user via API](https://meta.discourse.org/t/silence-user-via-api/205502)

<div class="topic-metadata">

**Author:** [@GioLogist](https://meta.discourse.org/u/GioLogist)\
**Replies:** 4\
**Last updated:** [October 8, 2021, 10:21am UTC](https://meta.discourse.org/t/silence-user-via-api/205502 "2021-10-08T10:21:43Z")

</div>

Use Case: We have a third party payment platform we’re using to “downgrade” a user upon non payment/renewal. When this happens, we want to be able to “downgrade” them on Discourse as well. Meaning, we want them to be ab…

---

## [Can i add an runit service in a plugin?](https://meta.discourse.org/t/can-i-add-an-runit-service-in-a-plugin/205086)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 5\
**Last updated:** [October 8, 2021, 7:47am UTC](https://meta.discourse.org/t/can-i-add-an-runit-service-in-a-plugin/205086 "2021-10-08T07:47:22Z")

</div>

Hi, I was wondering if it is possible to add an runit service in a plugin? If thats not possible I would be glad to hear about your strategies to deal with this kind of issue: I have a long running cpp program that needs…

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

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