Version 1.1 by smmccraw on 2007/07/08 09:45

Show last authors
1 So you have a title and a "list" of objects. The list has a minimum and maximum number of objects to display. If there is "too many" objects there is a "more..." link.
2
3 Here is the html:
4
5 {{code}}
6
7 {panel}
8 <webobject name="HasData">
9 <webobject name="Title"></webobject>
10 <br>
11 <webobject name="Items">
12 <webobject name = "Item"></webobject><br>
13 </webobject>
14 <webobject name="HasMore">
15 <webobject name = "MoreLink"><span class = "Label"><small><webobject name = "MoreCount"></webobject> more...</small></span></webobject><br>
16 </webobject>
17 <div class = "Space"></div>
18 </webobject>
19 {panel}
20
21 {{/code}}
22
23 And here is the wod:
24
25 {{panel}}
26
27 HasData: WOConditional {
28 condition = hasData;
29 };
30
31 Title: SpanString {
32 value = title.toUpperCase;
33 isSmall = true;
34 isBold = true;
35 class = "Label";
36 };
37
38 Items: WORepetition {
39 count = count;
40 index = index;
41 };
42
43 Item: SZLink {
44 value = item;
45 description = description;
46 altDescription = altDescription;
47 href = href;
48 pageName = pageName;
49 isSmall = true;
50 class = "Label";
51 };
52
53 HasMore: WOConditional {
54 condition = hasMore;
55 };
56
57 MoreCount: SpanString {
58 value = moreCount;
59 };
60
61 MoreLink: WOHyperlink {
62 action = displayMore;
63 };
64
65 {{/panel}}
66
67 Category:WebObjects