Edit Code

HI, please, I would need to change the code because I need to make a few changes that can’t be made using plugins or the CSS in the admin panels.

So far, I see the possibility in the docker container and then upload it somehow back.

Can you advise me any other solution?

I would be very grateful for any answer.

Thank you

Could you describe the changes you want to make in more detail?

Discourse team and the architects of Ruby & Rails (etc.) have gone a long way to make sure you can change code in plugins.

The whole point of plugins and theme components is that their changes survive rebuilds of the container.

Start here if you code changes includes Ruby API: Beginner's Guide to Creating Discourse Plugins Part 1: Creating a basic plugin

If Javascript only you can usually get away with a Theme Component. Developer’s guide to Discourse Themes

4 Likes

For example, I get here via the menu button on the top right - About, and I already have some modified or hidden a few things using display none, but if I wanted to add something here some new page led gdpr how do I do it? or lower than the email red how do I change to another email ??

Consider:

to add additional static routes, but why don’t you just change “Privacy” to “GDPR” in Customize → Text and then alter that document how you see fit to add GDPR content? You can already just edit that text almost like a normal Topic through the Discourse UI. Easy!

You can update the email and links in settings:

If you need to hide anything, yes you can do that in CSS you add to a Theme Component (best managed from a GitHub repo)

2 Likes