<
From version < 266.1 >
edited by Silvia Macovei
on 2019/02/19 14:03
To version < 265.1 >
edited by Silvia Macovei
on 2019/02/19 14:03
>
Change comment: Upload new image "DiagramPanel.png", version 1.1

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,59 +1,9 @@
1 -{{toc/}}
1 +{{extensionToc/}}
2 2  
3 3  This is a simple application that integrates ##jgraph/draw.io## in XWiki, adding support for editing and viewing diagrams. Each diagram is stored in a wiki page. It doesn't require any external services in order to work properly.
4 4  
5 -= Creating a new diagram =
5 += Examples =
6 6  
7 -To create a new diagram click on ##Diagrams## in the Applications panel.
8 -
9 -{{image reference="DiagramPanel.png" width="200"/}}
10 -
11 -Click on the ##Create## button, fill in the diagram name and select the ##Diagram## template, then click ##Create## again.
12 -
13 -{{image reference="DiagramsHome.png" width="920"/}}
14 -
15 -{{image reference="CreateDiagram.png" width="920"/}}
16 -
17 -Use the editor to create your diagram, then click ##Save & View##.
18 -
19 -{{image reference="DiagramEdit.png" width="920"/}}
20 -
21 -{{image reference="DiagramView.png" width="920"/}}
22 -
23 -= Including a diagram in another wiki page =
24 -
25 -== Using the WYSIWYG editor ==
26 -
27 -If you wish to display an existing diagram on another page you should use the Diagram Macro. Go to the wiki page where you'd like to include the diagram. In edit mode, click on the ##XWiki Macro## icon.
28 -
29 -{{image reference="DiagramMacro.png" width="670"/}}
30 -
31 -Select the Diagram Macro from the list of macros.
32 -
33 -{{image reference="AddDiagramMacro.png" width="620"/}}
34 -
35 -Fill in the path to the diagram you wish to include and click ##Submit##.
36 -
37 -{{image reference="EditDiagramMacro.png" width="620"/}}
38 -
39 -You will be able to see the included diagram both in edit mode and in view mode.
40 -
41 -{{image reference="DiagramMacroEditMode" width="670"/}}
42 -//Included diagram in edit mode.//
43 -
44 -{{image reference="DiagramMacroViewMode" width="920"/}}
45 -//Included diagram in view mode.//
46 -
47 -== Using the Wiki editor ==
48 -
49 -If you're more inclined to write code directly, you can write the following directly in wiki mode:
50 -
51 -{{code language="none"}}
52 -{{diagram reference="Path.To.DiagramPage" cached="true" /}}
53 -{{/code}}
54 -
55 -= A few diagram examples =
56 -
57 57  {{gallery}}
58 58  image:editDiagram.png
59 59  image:editDiagramFullScreen.png
... ... @@ -60,3 +60,11 @@
60 60  image:viewDiagram.png
61 61  image:viewDiagramMacro.png
62 62  {{/gallery}}
13 +
14 += Tips =
15 +
16 +If you wish to display a generated diagram on another page you should use the Diagram Macro.
17 +
18 +{{code language="none"}}
19 +{{diagram reference="Path.To.DiagramPage" cached="true" /}}
20 +{{/code}}
XWiki SAS Copyright © 2024