On Mon, Apr 15, 2013 at 11:39 AM, joemouth <joachim(a)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(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users