[WordPress] 外掛分享: Google Org Chart

前言介紹

  • 這款 WordPress 外掛「Google Org Chart」是 2011-11-14 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2011-12-21,距離現在已有 4882 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2.1 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ubcdev | ctlt-dev | alekarsovski |

外掛標籤

org | chart | google | org chart | Organizational |

內容簡介

此外掛可透過兩個短碼,簡化 Google 組織圖表的生成。

這兩個短碼分別為 [org_chart] 和 [org_chart_item]。

[org_chart_item] 標籤用於生成圖表中的每個節點,所有的 [org_chart_item] 標籤應該位於開始的 [org_chart] 和結束的 [/org_chart] 標記之間。

[org_chart] 具有三個屬性:

width – 設置組織圖表繪製空間的寬度(以像素為單位)
height – 設置組織圖表繪製空間的高度(以像素為單位)
collapsible – 在標記中添加此單字即可使圖表中的所有父節點可折疊並在雙擊時觸發

[org_chart_item] 具有四個屬性:

title – 如果未設置 content 屬性,該標題將作為節點 ID,而標題內容則作為節點的內容
content – 如果設置了 content 屬性,content 將作為節點的內容,而標題將僅作為節點 ID
parent – 父節點的 ID(如果有的話);這是父節點的標題,而不是內容
hover – 鼠標移到節點上時顯示的內容

示例組織圖表(結果在截圖中顯示):

[org_chart width='400' height='300' collapsible]
[org_chart_item title='Testing']
[org_chart_item title='TFCN' content='The First Child Node' parent='Testing']
[org_chart_item title='TSCN' content='The Second Child Node' parent='Testing']
[org_chart_item title='Link' content='A Link to the Past' parent='TFCN' hover='Zelda']
[org_chart_item title='Grandchild' parent='TFCN']
[org_chart_item title='Black Sheep' parent='TSCN']
[org_chart_item title='SDE' content='XXXXXXX' parent='TSCN' hover='Seven Deadly Exes']
[/org_chart]

請注意:Google 組織圖表 API 通過表格生成組織圖表。根據使用的主題,您可能會遇到一些樣式問題,可以通過一些自定義 CSS 進行修復。目前沒有計劃在此外掛中提供任何其他的預設樣式。

原文外掛簡介

This plugin simplifies the generation of a Google org chart through the use of two shortcakes.
The shortcodes are [org_chart] and [org_chart_item].
The [org_chart_item] tag is used for the generation of each node in the chart and all [org_chart_item] tags should be enclosed between the opening [org_chart] and closing [/org_chart] tags.
[org_chart] has three attributes:

width – set the width of the org chart drawing space (in pixels)
height – set the height of the org chart drawing space (in pixels)
collapsible – simply adding this word in the tag enables all parent nodes in the chart to be collapsible upon double-click

[org_chart_item] has four attributes:

title – if the content attribute is not set, the title acts as a node ID and the node’s content
content – if the content attribute is set, it will be placed as the node’s content while the title will simply act as the node ID
parent – the ID of the parent node (if any); this is the parent node’s title, not the content
hover – what should be displayed when someone hovers over the node

Example org chart (result is shown in the screenshots):
[org_chart width='400' height='300' collapsible]
[org_chart_item title='Testing']
[org_chart_item title='TFCN' content='The First Child Node' parent='Testing']
[org_chart_item title='TSCN' content='The Second Child Node' parent='Testing']
[org_chart_item title='Link' content='A Link to the Past' parent='TFCN' hover='Zelda']
[org_chart_item title='Grandchild' parent='TFCN']
[org_chart_item title='Black Sheep' parent='TSCN']
[org_chart_item title='SDE' content='XXXXXXX' parent='TSCN' hover='Seven Deadly Exes']
[/org_chart]

PLEASE NOTE: The Google org chart API generates the org chart through tables. Depending on the theme you are using you may experience some stylistic issue which can be fixed with some custom CSS. There are currently no plans to include any additional styling in the plugin out of the box.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Google Org Chart」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Organizational Message Notifier 》這個外掛允許網路管理員發送組織訊息到網誌管理員內部管理頁面中。, 主要功能:, , 每位網誌管理員都會看到通知,直到他們將所有訊息標記為已讀。, 網路管理員...。

文章
Filter
Apply Filters
Mastodon