Kemplen | 2022-04-04 13:27:54 UTC | #1
In my Discourse forum I have some very long topics and I can't find a way to either print them or export them to other formats (like MS-Word for example). These are the ways I have tried but without success:
1) Print from the browser: only a certain number of the first posts are printed, after which only blank pages follow.
2) Save as HTML from browser: same as above.
3) Select the whole topic to copy the contents to the Windows clipboard: you cannot select the whole topic, after a certain number of posts nothing is copied anymore.
So, the only possibility I have found is to select single parts of the topic and then paste them one by one in Word or similar, but obviously this is a very time consuming job.
I will be grateful if someone could suggest me a way to solve the problem.
Thank you .
Gianni Rossi
-------------------------
JammyDodger | 2022-04-04 13:36:10 UTC | #2
Depending on how many replies there are, adding `/print` to the end of the main topic URL (eg. `https://meta.discourse.org/t/how-to-print-or-export-very-long-topics/223138/print`) could be useful to you. I think it still has a cut-off point, but in a quick test it gave me far more replies than the standard browser alternative.
-------------------------
david | 2022-04-04 15:13:06 UTC | #3
Yup, `/print` is the way to go. If you press Ctrl + p on the keyboard that should take you straight there.
If you'd like to be able to access this from the UI, you can install this theme component:
https://github.com/discourse/Discourse-topic-print-component
(ignore the 'archived' banner on GitHub - that's a mistake. I'll get it unarchived :eyes:)
-------------------------
Falco | 2022-04-04 15:30:06 UTC | #4
Other than pressing Ctrl + p any time you want to either print or export to PDF/HTML, if you want to export to markdown you can visit the `raw` route like https://meta.discourse.org/raw/223138
-------------------------
Kemplen | 2022-04-04 16:29:40 UTC | #5
Thanks Jammy and David, `/print` or Ctrl + p solved the problem.
[quote="Falco, post:4, topic:223138"]
if you want to export to markdown you can visit the `raw` route like https://meta.discourse.org/raw/223138
[/quote]
Sorry but I don't understand how to use that URL for my own topic. Could you please clarify.
Thanks.
-------------------------
sethm | 2022-04-04 16:38:24 UTC | #6
`forum.example.com/raw/topicID` should give you a markdown file of the topic.
-------------------------
Kemplen | 2022-04-04 17:35:50 UTC | #7
[quote="sethm, post:6, topic:223138, full:true"]
`forum.example.com/raw/topicID` should give you a markdown file of the topic.
[/quote]
It works, thanks, but the topic is truncated at post 100 out of 177.
is there a way to get the text of the whole topic?
-------------------------
sethm | 2022-04-04 17:44:32 UTC | #8
https://meta.discourse.org/t/raw-of-a-topic-gives-only-the-first-100-posts/221044/2?u=sethm
-------------------------
system | 2022-05-04 19:15:32 UTC | #13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
-------------------------