Re: [xwiki-users] a little help wanted
On Fri, Apr 12, 2013 at 8:57 PM, Joachim Mund <joachim@mund-online.de> wrote:
Hi Marius,
thanks so lot.
Yes, I installed the diagram extension before with no problems. Thanks to your hint, I have now successful created a page with a diagram.
The only problem is, that I can not integrate it into a wiki page. The extension "display" asks me for the reference of the resource to display, but there is no list to select or any other help what to insert here. The name of the diagram does not work.
In XWiki we often say "everything is a document". The diagram that you created is a document (a wiki page if you prefer). The diagram content (its drawing instructions) is stored in the document content. The diagram meta data is stored in objects attached to that document (just edit the document with the object editor and see). So if you want to display the diagram inside another document, the reference that you have to pass to the display macro is the reference to the document holding the diagram: {{display reference="Diagram.MyFirstDiagram" /}} The part before the diagram name (before the dot) is the space name, and currently the Diagram application creates all diagrams in the Diagram space. Hope this helps, Marius
To ask for help on the user list seems to be a little bit complicate. I know well standard forum systems for example http://forum.dokuwiki.org in which I am sometimes very active. But the xwiki user list is not so handy for searching etc. I have to learn it :-(
Kind regards and best wishes,
Joachim Mund from Aachen, Germany
schrieb Marius Dumitru Florea:
Hi Joachim,
It's best to ask for help on the users list so that others can benefit from the answer.
Did you managed to install the extension? See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Extension+Manager+Appli... if you have trouble. Note that if you're using XWiki 5.0M2 best is to install (or upgrade to) version 1.0.2 of the Diagram Application.
After the extension is installed go to your home page and you should see a "Diagram" link in the Applications panel. Follow the link. On the Diagram Application home page there is a small panel with a "Add new entry" link which lets you create new diagrams.
You can then include the created diagrams in other pages, if you wish, using the display macro http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+Macro .
Hope this helps, Marius
On Fri, Apr 12, 2013 at 2:11 PM, <joachim@mund-online.de> wrote:
Hi Marius,
I am new to xwiki and would like to use your extension "Diagram Application".
Unfortunately I'm not familiar how to include this extension in a xwiki page. Could you please give me a link of a tutorial/doc or some words how to do this.
Coming from DokuWiki I have to learn a lot of xwiki basics.
Thanks in advanced, Joachim
_____________________________________ Sent from http://xwiki.475771.n2.nabble.com
Marius Dumitru Florea wrote
.....So if you want to display the diagram inside another document, the reference that you have to pass to the display macro is the reference to the document holding the diagram:
Thus, if an author would like to edit a diagram which is included in a page, he has to move to the space name, edit the diagram and goes back to the page? Is there any way to edit the diagram directly from the page where it is included? Marius Dumitru Florea wrote
{{display reference="Diagram.MyFirstDiagram" /}}
Great, this works for me. -- View this message in context: http://xwiki.475771.n2.nabble.com/Re-a-little-help-wanted-tp7584675p7584696.... Sent from the XWiki- Users mailing list archive at Nabble.com.
Marius Dumitru Florea wrote
.....So if you want to display the diagram inside another document, the reference that you have to pass to the display macro is the reference to the document holding the diagram:
Thus, if an author would like to edit a diagram which is included in a page, he has to move to the space name, edit the diagram and goes back to the page? Is there any way to edit the diagram directly from the page where it is included? Marius Dumitru Florea wrote
{{display reference="Diagram.MyFirstDiagram" /}}
Great, this works for me. -- View this message in context: http://xwiki.475771.n2.nabble.com/Re-a-little-help-wanted-tp7584675p7584697.... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Apr 15, 2013 at 11:39 AM, joemouth <joachim@mund-online.de> wrote:
Marius Dumitru Florea wrote
.....So if you want to display the diagram inside another document, the reference that you have to pass to the display macro is the reference to the document holding the diagram:
Thus, if an author would like to edit a diagram which is included in a page, he has to move to the space name, edit the diagram and goes back to the page?
Yes.
Is there any way to edit the diagram directly from the page where it is included?
If the page that includes the diagram is unstructured (free wiki text) then no. If the page is structured and the diagram is part of its structure then it is possible. For instance, if you define a "Project" document type (we call it xclass or simply class) which has, among other fields like title, description or manager, a "diagram" field (whose value is a reference to a diagram) then you can write a sheet for this document type that controls how an instance (a project) is displayed in view and edit mode. The sheet will display the project fields including the diagram field. In edit mode it could allow you to edit the diagram inline with the rest of the project fields. If you want to go in this direction then platform.xwiki.org/xwiki/bin/view/DevGuide/ has a few useful resources, including the "Create a FAQ application" tutorial. Hope this helps, Marius
Marius Dumitru Florea wrote
{{display reference="Diagram.MyFirstDiagram" /}}
Great, this works for me.
-- View this message in context: http://xwiki.475771.n2.nabble.com/Re-a-little-help-wanted-tp7584675p7584696.... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
joemouth -
Marius Dumitru Florea