|
More by this Author [4/4]
D E S C R I P T I O N: |
|
|
This example picks up where the previous left off and adds an enhancement of testing to see if the author had more then 3 stories. If she/he did, a link is inserted to link them to an author archive for their complete list. This author archive would be something you would have created using the <dpSpawn> tag.
This test is achieved by performing another query about the author, but this time only returning the "count" of how many matches the query made. This is then compared to see if it is greater than 3 and if so, the more link is added.
<dpLoop var="i" from="1" to="<dpAuthor return="count">">
See also: <dpAuthor>, <dpAuthorId>, <dpHeadline>, <dpIf>, <dpLoop>, <dpSummary>, <dpVar>
More by Phil Campbell:
Of Rags and Riches
Facing the Mob
One Step Forward...
Windows for Unions
Last Train to Debtsville
Seattle Weekly Up for Sale
Sliced Eyeballs
|
| Home:
Support:
Reference Guide:
|
Questions? Comments? Please write support@desert.net. |