• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..23-Apr-2024-

READMEH A D06-Apr-20162.1 KiB5538

action.phpH A D06-Apr-20161.3 KiB4822

plugin.info.txtH A D06-Apr-2016207 87

script.jsH A D06-Apr-20163 KiB8372

style.cssH A D06-Apr-2016812 3329

README

1==== OrgChart plugin for DokuWiki ====
2
3See plugin.info.txt for information regarding version, author and links.
4
5
6=== Create org charts by using a table ===
7
8This plugin requires either the Wrap Plugin [https://www.dokuwiki.org/plugin:wrap] or the Data Plugin [https://www.dokuwiki.org/plugin:data].
9
10
11== Using Wrap Plugin ==
12
13<WRAP orgchart>
14^Name           ^Line Manager   ^Job Title          ^Photo                   ^
15|Alice Baker    |Bob Smith      |PR                 |{{:staff:alice.png?60}} |
16|Bob Smith      |Carol Davidson |Marketing Director |{{:staff:bob.jpg?60}}   |
17|Carol Davidson |               |CEO                |{{:staff:carol.jpg?60}} |
18|Dave Miller    |Carol Davidson |Secretary          |{{:staff:dave.jpg?60}}  |
19|Eric Taylor    |Bob Smith      |                   |                        |
20</WRAP>
21
22The order of the columns must be: name, line manager, job title, photo. Job title and photo are optional.
23The line manager's name must be the same as it appears in the name column of that manager.
24
25
26== Using Data Plugin ==
27
28Dataentry needs at least:
29* name (staff member's name, type: 'pageid' or simple string)
30* line manager (line manager's pagename, type: 'page' or simple string; when using 'page' this needs to be the exact pagename, when using simple string it needs to be the exact same string for each entry of the same manager)
31
32Optional dataentry:
33* job title (staff member's job title, type: simple string)
34* photo (photo of staff member, type: 'img')
35
36Examples of tables:
37
38---- datatable orgchart ----
39cols    : name_pageid, linemanager_page, title
40headers : Name, Line Manager, Job Title
41sort    : name
42----
43
44---- datatable orgchart includelinks ----
45cols    : name_pageid, linemanager, title, photo_img60
46headers : Name, Line Manager, Job Title, Photo
47sort    : name
48----
49
50* class 'orgchart' necessary
51* order is important (same as above)
52* linemanager and photo columns are optional
53* class 'includelinks' results in link to a staff member's page being included
54* if type 'page' is used for line manager, the link text doesn't need to match the exact name as the pagename in the link will be used to match managers
55