gingerman
(ginger man)
16.Ноябрь.2021 05:24:08
2
Похожий вопрос в прошлом →
Я знаю, что в Discourse теперь можно изменять текст практически на всём сайте через панель администратора, но есть ли способ сделать что-то вроде глобального поиска и замены?
Я понимаю, что категории и темы являются фундаментальными элементами архитектуры Discourse, но что, если я хочу воссоздать опыт форума, на который я мигрировал, и вместо «Категорий» использовать «Форумы», а вместо «Тем» — «Треды»?
Если вы разбираетесь в технологиях, есть несколько вариантов массовой замены строк в постах, которые теоретически можно расширить для решения вашей задачи
==> 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…