dokuwiki-strata
dokuwiki-strata copied to clipboard
Multiple entries on one page
Hi,
is it possible to define more than on entry on a page? I have tested it, and the result is a little bit confusing for me because I don`t know if I make a mistake in my table definition or if it really doesn't work correctly.
Here is my syntax:
<data person>
Full Name: John
Age: 24
Contact [link]: [email protected]
</data>
<data person>
Full Name: Alice
Age: 28
Contact [link]: [email protected]
</data>
<table ?person ?contact ?Age>
?person is a: person
?person Contact [link]: ?contact
?person Age: ?Age
</table>
Best regards Juergen
It works, but you have to indicate yourself which <data>
blocks are separate entries and which should simply be combined:
<data person #John>
Full Name: John
Age: 24
Contact [link]: [email protected]
</data>
<data person #Alice>
Full Name: Alice
Age: 28
Contact [link]: [email protected]
</data>
Note the #Name
part. A data block with a different name is seen as a different entry.
(Lack of name is also seen as a separate "name"; which is why your definitino behaves a little weird. Strata thinks you are declaring one person with multiple names, ages and contacts.)
Does this clarify things?
Thank you for the explanations!
I use the data plugin for several things in our wiki. But exactly this was a problem for some special tasks, and I hoped that the strata plugin perhaps could solve it.