Structuur en duplicatie van categorie-inhoud binnen discours en tussen discouslocaties

Ik gebruik Discourse om de onderdelen en stukken van een bepaalde recente wet te documenteren en wil de bestaande categorie en inhoud voor die wet gebruiken om een categorie te creëren die gericht is op de intrekking van die wet.

Dus categorie A met inhoud → categorie B. Zijn er ideeën voor een goede export/import voor categorieën binnen Discourse?

Ik heb overwogen om een nieuwe Discourse op te zetten voor het werk aan categorie B op een subdomein, een ander domein, d.w.z. een domein gericht op de intrekking of een site gericht op de daadwerkelijke tekst van de intrekkingwet.

Ook, mogelijk gerelateerd: Heeft iemand een synchronisatie-opstelling gedaan van een categorie van een Discourse naar dezelfde/vergelijkbare categorie op een andere Discourse-instantie?

Do you want to create just subcategories or also the topics?

You can export a category… Maybe it’s here: Administrative Bulk Operations

2 likes

Thanks for that! It is useful but to answer your question, no subcategories, just one categories’ contents into another, once and done. I am trying to avoid duplicating manually but as I work on the manual approach I am reminded the topic title can’t be reused so I need to append/modify the title and change the contents to need text or placeholder.

I am probably conflating things a bit as I get my head wrapped around things. Also, I am trying to avoid use some actual links that would help with articulating my needs given the highly political nature of the bill in question. :wink:

Hopefully this helps.

For individual topics without all the index and chapter stuff
Category A
Sec. 10101. Re-evaluation of thrifty food plan tagged Enrolled-Text
Law-as-Amended | Sec. 10101. Re-evaluation of thrifty food plan tagged Law-as-Amended
Impact | Sec. 10101. Re-evaluation of thrifty food plan tagged Impact

Category B
Draft | Sec. 10101. Re-evaluation of thrifty food plan tagged Draft
Ready-to-Publish | Sec. 10101. Re-evaluation of thrifty food plan tagged Ready-to-Publish
Published | Sec. 10101. Re-evaluation of thrifty food plan tagged Published (the text would be pubished on a seperate single focus site.)

You can change that in the site settings: Allow duplicate topic titles

5 likes

ja, ik moet dit gebruiken voor die e-mails met herhalende onderwerpen

1 like

I could not see a workable path using some mix of the rails queries suggested by @pfaffman but his subcategories prompt was very useful.
I was reticent to Allow duplicate topic titles as @Moin suggested but turns out the result was not confusing, at least to me, as I feared it would be.

So… category A for the original bill, two subcategories for Law as Amended and Impact, create new mirrored tag groups for the two subcategories using existing tags, then create new topics with placeholder text for each of the Sections of the original bill. This part is rather brain numbing :persevering_face: given the there are 307 sections/topics in category A. 614 manually created topics, yikes.

I thought turning off Allow duplicate topic titles would be best once we open the forum to users but I believe that would make any edits in the topics un-savable which won’t work with topics as wikis.

In practice allowing duplicate titles may not create the confusion I fear but..

Does it makes sense to have warning that prompts the user to adjust the title instead of just allowing the topic save to proceed? Maybe something similar to:

But with different text and selecting OK saves the topic.

“The topic title you are attempting to use has been used at least once before. Please consider revising the title or, the duplicate title is needed or desired, please proceed with the save.”

dubbele onderwerpkoppen zijn prima, ik heb er honderden. Het doel van het toestaan van dubbele koppen is nuttig bij het doorzoeken van de database, misschien is het niets voor jou?

Ik ben meer op mijn hoede voor dubbele categorienamen/slugs

Not doing that for certain :slight_smile:

i’m guilty of duplicate subcategory names in different names of parent category :sweat_smile:

1 like

Dat zou mijn kleine brein doen ontploffen.
Ik wist niet dat categorieën en subcategorieën dubbele titels konden hebben, misschien wel dubbelen met verschillende slugs, neem ik aan.

I might be wrong because i haven’t tried two parent categories with same name, from a quick look at my hundreds of categories.

I think the slug is designed to be legible to a human or search engine indexer, if relevant :wink:

denk het niet, de slug hierin is goed leesbaar

omitted://meta.discourse.org/c/support/6

Bewerkt: Sorry daarvoor, heb je bericht totaal verkeerd gelezen. En ik weet niet zeker of de slug er echt toe doet.

2 likes