Loading...
 

What is PluginDiagram ?


PluginDiagram is a new feature of Tiki19.

This feature allows you to create and manipulate different types of diagrams such as UML, BPMN General, Flowcharts, draw network architectures or make diagrams to represent statistical or marketing data.

The PluginDiagram is based on mxGraph (MXGraph), an open source diagram library developed in JavaScript, launched in 2005, which works on most browsers and touch devices.

The power of this tool is such that it is very suitable for small projects as well as complex and large-scale projects.

Notice

Until 19.2 or 19.3 is released

Please note that the feature is still being refined in 19.x so you perhaps should run Tiki from SVN or the Daily Build to get the latest fixes. For example:


Parameter

Introduced in Tiki 19.
Preferences required: wikiplugin_diagram
Parameters Accepted Values Description Default Since
fileId int Id of the file in the file gallery. A xml file containing the graph model. 19.0


Getting started with PluginDiagram

Installation of mxGraph


As a first step before starting the installation and use of PluginDiagram, make sure to install mxGraph (if this has not already been done), navigate to the Admin control panel in the Packages menu as shown in the capture below.

Screenshot 1: Showing the tiki menu
Step 1

Screenshot 2: Select the "control panel" option
Step2

Screenshot 3: Selecting the "Package" option
Step3

By default tiki does not install mxgraph so it is normal not to find it in the list of packages that will be displayed. So follow the arrow on the image below and go to the "Install Other Packages" tab

Screenshot 4: Selection of the "Install a package" tab
Step4

You will have a list of packages ready to be installed, you will also find mxGraph... Click on' Install''.

Screenshot 5: Click on install button
Step5

For more information on how to install a package in tiki, please consult this documentation

Once the installation of the Package is complete, you will get a message that looks like the following capture.

Screenshot 6: Message after installation of mxGraph
Step6

If you return to the first tab of the Packages menu, you will notice that mxGraph has been successfully installed as shown in capture below

Screenshot 7: Notice that mxGraph is installed
Step7

Enable PluginDIagram


As mxGraph is installed, the second step is to activate the PluginDiagram to be able to use it.
Navigate to the Edit menu and Plugin, then to the second tab (Plugins) as indicated in the next two captures.

Screenshot 8: Showing "Edit and Plugin" menu
Step8

Screenshot 9: Select "Plugins" tab
Step9

Or you can simply attach this link fragment ' /tiki-admin.php?page=textarea&cookietab=2 ' after the name of your installation folder or your domain name.

Once in the right place, look for the Diagrams plugin and activate it. You can use your browser's search tool to find it faster. The following capture illustrates the action to be performed.

Screenshot 10: Activate "Diagrams" plugin
Step10

For more information on how to enable a plugin in tiki, please consult this documentation

How to use tiki PluginDiagram


In your file gallery upload your xml file containing the graph model.
You can test using this file : https://doc.tiki.org/dl1452
Or files from : https://github.com/jgraph/mxgraph/tree/master/javascript/examples/editors/diagrams

Go to the Admin Control Panel, Editing and Plugins (tiki-admin.php?page=textarea&cookietab=2).
Enable the Diagram plugin and set it on a Wiki page.

If the file Id of the model you've just uploaded is 43 this is how it should look

{diagram fileId="43"}


This is how the page should look:
Step01

You can edit the model using the GraphEditor integrated into Tiki by clicking on the "Edit diagram" link that you will find below the wiki page where this diagram is located as shown on this capture below :
Step02

And you will be redirected to the diagram editing page as shown on the capture below

Step03

Some examples


In this example, you are shown two ways to proceed to create a diagram.
The first way is to start from scratch, i.e. design your diagram on the basis of no model.

Let's create a diagram in tiki from scratch

First, go to the tiki menu and create a wiki page, give it a name and then validate the creation.
The second thing, in the editing space of the wiki page, write this code:

{diagram}

Then save the changes, and to continue you will see the "Create a new diagram" button as shown in the image below:
Capture11
Press this button and you will be redirected to the PluginDiagram which is in tiki and which will allow you to draw your diagram from scratch
Test

Draw your diagram, in the screenshot below we make a test drawing
Test1

After your changes, go to the "File" menu and click on the "Save" option and a small window will appear to indicate that your window will close automatically to return to your wiki page as shown in the image below
Sans Titre

There you go, you've just created your diagram from scratch.

Let's now move on to the creation of a diagram based on a pre-existing model:

Let create a "Mind Map" diagram in tiki with PluginDiagram

As a first example, we will create a mind map using the example at https://about.draw.io/features/examples/

  1. We will go to https://about.draw.io/features/examples/ then scroll down the page and position yourself at the level of the Mind Map example, then press the "Live Example" button as shown in the screenshot below.

Step04

then, make your changes as you wish and save your changes in xml format as shown in the two screenshots below :
Step05

Once the xml file is exported, go to your tiki instance, in the "File Galleries" menu then to "Upload file" and upload the xml file you just exported to draw.io
Once the upload is finished, retrieve the id of the file you just uploaded and note it somewhere as shown in the image below :
Step07

Go to the tiki menu, create a wiki page and put the code :

{diagram fileId=" "}
and at the fileId level put the ID you have previously copied.


Step08

Then press save and you will have the diagram on your wiki page and at the bottom of this page you will have the option "Modify diagram" which will redirect you to draw.io to be able to make your changes.

doc.tiki.org

Bootstrap AdminGuide UserGuide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Trackers
Transitions
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show PHP error messages