[WordPress] 外掛分享: Docxpresso

首頁外掛目錄 › Docxpresso
WordPress 外掛 Docxpresso 的封面圖片
2,000+
安裝啟用
★★★★
4.7/5 分(31 則評價)
1541 天前
最後更新
問題解決
WordPress 3.5+ v2.6 上架:2015-06-17

內容簡介

如果您習慣使用辦公室軟件,例如 MS Office、Libre Office 或 Open Office 的文字處理軟件或試算表,Docxpresso 是您一直在尋找的 WordPress 外掛!

此外掛會允許您發佈使用您喜歡的辦公室軟件(MS、Libre 或 Open Office)生成的內容,並保留它的全部結構、設計和格式:

格式漂亮的文字
標題
表格(可排序和響應式)
鏈接和書籤
嵌套的具有複雜編號的列表
圖片
圖表
文本框
腳注和尾注
頁首和頁尾
內容表格(TOCs)
註釋
數學公式
首字下沉
Office SmartArt 和表單(部分)
支援從右到左的語言

您甚至可以創建可排序的表格或將圖表以瀏覽器友好的方式導出。

此外掛是我們的Docxpresso API庫的分支,旨在在您的 Web 伺服器上生成各種動態文件(PDF、Word、ODT、RTF)。

如果您使用我們的外掛,我們將非常感謝您填寫這個簡單的在線調查問卷。

使用方式

注意:如果您已經升級到 WP5.* 或正在使用 Gutenberg 編輯器外掛,請查看此頁面的 Gutenberg – WP5 區塊編輯器部分。

使用您最喜愛的文字處理軟件或試算表(MS Word、Libre Office 或 Open Office)創建具有要插入到帖子或頁面中的內容的標準文檔。
重要:以.odt(或試算表的.ods格式)格式儲存文檔。在 MS Word 中,在您的“另存為”對話框中選擇OpenDocument (.odt) 格式(在 Libre 或 Open Office 中是默認格式)。如果您正在使用 Excel,同樣可以以 Open Document Format (.ods) 儲存。
在您的 WordPress 界面中創建或編輯帖子或頁面。
單擊文本編輯器上方的“插入文檔”按鈕。
標準 WordPress 媒體窗口將打開。您可以上載帶有所需內容的新文檔,也可以使用以前上載的文檔。
選擇文件後,點擊“插入”按鈕。
一個 [docxpresso] 短代碼將包含在您的文本編輯器內。
然後,您可以添加或不添加任何額外的內容到您的帖子中,但不要試圖手動修改 Docxpresso 短代碼的內容,除非您真的知道您在做什麼。
您可以在單個帖子或頁面中插入任意數量的文檔。

注意:您也可以將 Docxpresso 外掛與其他可從雲存儲庫中檢索文檔的外掛相結合,例如 Amazon S3。

請查看此視頻教程,其中將找到所有上述詳細示例:

如果您想使表格可排序,您還應:

將 Office 文檔中的第一行宣告為標題行
在您希望可排序的每一列的第一個字符中插入“@”符號
如果您想根據不遵循 en-US 標準(即 3,576.45)的數字排序列,您應該在外掛選項面板的“設置”部分中修改排序的數字格式。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Docxpresso」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

If you are used to write all your documents using a Office Suite Word Processor or Spreadsheets like the ones available in MS Office, Libre Office or Open Office Docxpresso is the WordPress plugin you are looking for!

This plugin will allow you to publish content that has been generated with your favourite Office Suite (MS, Libre or Open Office) preserving all of its structure, design and format:

Nicely formatted text
Headings
Tables (sortable and responsive)
Links and bookmarks
Nested lists with sophisticated numberings
Images
Charts
Textboxes
Footnotes and endnotes
Headers and Footers
Tables of contents (TOCs)
Comments
Math equations
Drop caps
Office SmartArt and forms (partial)
Support for Right-To-Left languages

You may even create sortable tables or even export your charts in a browser friendly manner.
This plugin is a spin-off of our Docxpresso API library designed to generate all kind of dynamical documents on your web server (PDF, Word, ODT, RTF).
If you use our plugin we would be very thankful if you fulfill this simple online survery.
How to use it
NOTE: If you have updated to WP5.* or you are using the Gutenberg editor plugin you should also have a look at the Gutenberg – WP5 Block editor section of this page.

Create a standard document with the content that you want to insert in your Post or Page using your favourite Word Processor or Spreadsheet (MS Word, Libre Office or Open Office).
IMPORTANT: Save your document in .odt (or .ods format for spreadsheets) format. In MS Word choose OpenDocument (.odt) in your Save As dialogue (in Libre or Open Office is the default format). If you are working with Excel you may equivalently save it in Open Document Format (.ods in this case).
Create or edit a Post or Page in your WordPress interface.
Click the Insert Document button located over the text editor.
A standard WordPress media window will open. You may upload a new document with the required contents or use a previously uploaded document.
After choosing a file click on the Insert button.
A [docxpresso] shortcode will be included within your text editor.
You may then add or not any additional content to your post but do not try to modify by hand the contents of the Docxpresso shortcode unless you really know what you are doing.
You may insert as many documents as you wish in a single Post or Page.

NOTE: You may use also Docxpresso plugin in conjunction with other plugins that allow to retrieve documents from cloud storage repositories like Amazon S3.
Check this video tutorial where you will find a detailed example of all the above:

In case you want to make any of your tables sortable you also should:

Declare the first row of your table as a header row within your Office document
insert a “@” symbol as the first character in every column that you wish to be sortable
If you want to sort columns by numbers that do not follow the en-US standard, i.e. 3,576.45, you should modify the number format for sorting in your plugin options panel under the Settings section of your WordPress installation

You may check how to do it with the help of this video:

Since v2.1 you may also insert in your document a link to a yotube video, a Google form or a Google doc to render it in your WordPress post or page:

Go to youtube, Google forms or Google docs interfaces and copy the offered share link
Always use, if available, the short URL format
Insert it into your office document as a link
By default the videos are fluid and the forms and docs take all available width space. But you can set custom width and height by adding, for example, ‘?width=600&height=400’ to the link URL

You may see an example in the following video:

Gutenberg – WP5 Block editor
Since v2.3 this plugin is compatible with the new “WP block editor”, also known as Gutenberg:

Click on the Docxpresso block that is available together with all the standard widget blocks within your block editor interface.
A new block will appear in the editor interface with a button inviting you to select a file.
Clicking on that button a standard WordPress media window will open. You may upload a new document with the required contents or use a previously uploaded document.
After clicking on the “Select button” a shortcode will be inserted in your editor.
As before, if you wish, you may insert multiple documents with Docxpresso in the same page or post and combine them with all other available blocks.

NOTE: With this new editor you need to save the edition before being able to visualize the uploaded document in the preview page.

If you prefer to use the “Classical editor” in your WP5 installation you may proceed as described in the previous section.
Licensing
This work is licensed under GPLv2 or later.
This plugin comes bundled with the D3 and C3 JavaScript libraries for chart rendering, the webui-popover library for comment rendering and the MathJax library for rendering of math equations in a web browser. D3 (http://d3js.org) is distributed under the BSD license, MathJax (https://www.mathjax.org/) and dropcap.js (https://github.com/adobe-webplatform/dropcap.js) under the Apache license v2.0 , C3 (http://c3js.org/) and webui-popover (https://github.com/sandywalker/webui-popover) are distributed under the MIT license .

延伸相關外掛

文章
Filter
Mastodon