Set or update a featured topic link

You can set or update a featured link on a topic by using the rails console.

From your server, enter the rails console from your Discourse folder:

./launcher enter app
rails c

When in the rails console, execute your command:

Topic.where(id: your_topic_id).update(featured_link: "https://your-link.com")

You can also use @nathankershaw’s form below to generate your rails command.

3 Likes

I need to do this a bit at the moment, so made a little tool to get the right rails console command easily.

You can use this to either add a Featured Link, or to change an existing one.

Topic.where(id: =topic_id=).update(featured_link: "=featured_link=")
6 Likes