跳至內容
選單
此問題已被標幟
1 回覆
2049 瀏覽次數

Hello all.

How can I export the contents of my knowledge articles?


If I go to "search" -> Actions -> Export, I get this screen "Export Data", which has hundred of fields to choose from, but I still couldn't find how to export the article itself (the knowledge).


Any thoughts?

Thank you

頭像
捨棄
作者

Hi Nikhil Nakrani thank you for answering.

That filter is not enough. There are still lots of sub fields that aren't the contents of the article itself.

All I can see is information that I don't need, like "parent article", followers, article url, etc

I need that article content (the knowledge) and I still haven't found it.


Hello All,
I also would like to know how to print a knowledge article as a PDF document.
We use the knowledge articles as a 'how to guide' and it would be nice to provide information of this article to users outside of the company.
Thanks

Hello Angelina,
To save an article as a PDF, you can press `ctrl` + `p` and set the "Destination" field to "Save as PDF" (see: the printing options in the right panel of the printing preview). The browser will then save your article in a PDF file instead of sending it to an actual printer.

最佳答案

Hello Ricardo,

The article content is stored in the body​ field of the knowledge.article​ model. This field/column contains the raw HTML of your articles.

頭像
捨棄

Even though this worked for me, my article had some screenshots that couldn't be recovered this way, do you know any solution to export also media that is saved inside the article?

Hello,

To download the attachments of your articles (i.e: the images, the files, etc), you can follow this procedure:

1. Log in as an Administrator
2. Enable the developer mode
3. You can go in `Settings / Technical / Database Structure / Attachments`
4. Click on the view search bar caret to show all the filters.
5. Click on the "Custom Filter" option.
6. In the "Add Custom Filter" modal, add a new rule such that `res_model="knowledge.article"` and `res_id="<id of your article>`. Make sure that the search domain looks like this in the editor preview: `["&", ("res_model", "=", "knowledge.article"), ("res_id", "=", "42")]` (replace `42` with your own article id).
7. In the kanban view, you should now see all the attachments that are linked to the given article. You can download the attachments by clicking on the "Download" link from the card options.

Hope it helps :)