By default all author(s) names are returned (return="value"). You may optionally return the
count which tells you how many authors an individual story has, and then loop through the
authors one by one using the number attribute.
For example:
<dpIf <dpAuthor return="count"> = 1>
{do the regular author layout}
<dpElseIf <dpAuthor return="count"> gt 1>
{do the multi author layout and loop through the authors}
</dpIf>
The following expands on this concept and creates a link to the author's archive page.
If there are multiple authors, it will create a link to each author's individual archive
page by looping through them.
<dpIf <dpAuthor return="count"> = 1>
<dpAuthorCredit> <a href="../authors/<dpAuthorID>.html"><dpAuthor></a>
<dpElseIf <dpAuthor return="count"> gt 1>
<dpAuthorCredit>
<dpLoop var="i" from="1" to="<dpAuthor return="count">">
<a href="../authors/<dpAuthorID number="<dpVar i>">.html">
<dpAuthor number="<dpVar i>"></a>
<dpIf <dpVar i> lt <dpAuthor return="count">>
,
</dpIf>
</dpLoop>
</dpIf>
The idea is to loop through however many
authors you have (from="1" to="<dpAuthor return="count">"), and then process
each one individually, using the number attribute and the loop variable
(<dpVar i>).
An additional test is performed to see if it is the last author or not. If
it isn't a comma is displayed.