gingerman
(ginger man)
Novembro 16, 2021, 5:24am
2
Pergunta semelhante no passado -\u003e
Sei que o Discourse agora permite que qualquer pessoa no site altere textos por meio do painel de administração, mas existe alguma maneira de fazer algo como localizar e substituir tudo?
Sei que categorias e tópicos são fundamentais para a forma como o Discourse foi construído, mas e se eu quisesse replicar a experiência do fórum para o qual estou migrando e, em vez disso, usar “Fóruns” no lugar de “Categorias” e “Fios” no lugar de “Tópicos”?
Se você tem conhecimento técnico, existem algumas opções para substituição em massa de strings em posts que teoricamente podem ser estendidas para fazer o que você procura
==> Discourse-post-process <==
I’m happy to introduce this simple but powerful Node.js script that uses the Discourse API to mass-modify Discourse posts. It essentially performs a regexp-based search & replace across all posts in a forum.
After migrating a few thousand posts from MyBB to Discourse, there was various little tweaks that needed to be made (fix BBCode → Markdown conversion, re-attach attachments, fix @username mentions when the usernames have changed etc.) I’m not a Ruby coder, and…
This guide explains how to replace a string in all posts within a Discourse instance.
Required user level: System Administrator
Console Access Required
Want to replace a string in all the posts on a site? Let’s get started!
WARNING: We strongly recommend you take a full backup before proceeding, and make sure your string replacement is specific enough to affect only the places you want it to. If this string replacement goes wrong, every…