Wiki source code of XWiki References

Version 2.1 by sub1236 on 2008/05/21

Show last authors
1 1 Projects Powered by XWiki
2
3 Please add information about your usage of XWiki on this page. This will help promote XWiki and fund its development.
4
5 ## ---------------------------------------------------
6 ## Let the user add a XWiki Reference
7 ## ---------------------------------------------------
8
9 <form action="" id="newreference">
10 <input type="hidden" name="parent" value="References.WebHome" />
11 <input type="hidden" name="template" value="XWiki.ReferenceClassTemplate" />
12 <input type="hidden" name="sheet" value="1" />
13 <input type="hidden" name="webname" value="References"/>
14 <input type="hidden" name="name" value=""/>
15 <table>
16 <tr>
17 <td>
18 <input type="text" name="reference" value="" size="30"/>
19 </td>
20 <td>
21 <input type="submit" value="Add this Project" onclick='if (updateName(this.form.reference,this.form.name)) { action="../../inline/" + this.form.webname.value + "/" + this.form.name.value; this.form.submit(); }' />
22 </td>
23 </tr>
24 </table>
25 </form>
26
27 ~~You can also add yourself to the [XWiki Users Map>http://www.frappr.com/xwikiusers].~~
28
29 1.1 XWiki Badge
30
31 If your site is powered by XWiki please consider adding this badge to show your appreciation:
32
33 {image:80X15.png}
34
35 1.1 Project List
36
37 Click on the projects in the table to get more information. You can search for a project using the filters below.
38
39 #info('Project using XWiki we know about are most of the time added to this list by default. Please register (top right) to add or edit the details of a project. If you would like your project to be removed from the list below please send us an email at contact@xwiki.com')
40
41 #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.ReferenceClass' and obj.name<>'XWiki.ReferenceClassTemplate' order by doc.name asc")
42 #set ($references= $xwiki.searchDocuments($sql))
43
44 <table id="referenceTable" class="grid sortable filterable doOddEven" cellpadding="0" cellspacing="0" border="0">
45 <tr class="sortHeader">
46 <th class="unsortable noFilter">Image</th>
47 <th>Project</th>
48 <th>Organization</th>
49 <th class="unsortable">Usage</th>
50 </tr>
51 #foreach ($reference in $references)
52 <tr style="cursor: pointer;" onclick="window.location='$xwiki.getURL($reference)'">
53 #set ($refDoc = $xwiki.getDocument($reference))
54 <td>
55 #if ($refDoc.attachmentList.size() > 0)
56 #set ($attach = $refDoc.attachmentList.get(0))
57 <img style="width: 100px; height: 100px; border: 1px; border-color: #000000; border-style: solid;" src="$refDoc.getAttachmentURL($attach.filename)"/>
58 #else
59 <img style="width: 100px; height: 87px; border: 1px; border-color: #000000; border-style: solid;" src="$doc.getAttachmentURL("XWikiReferenceThumbnail.png")" />
60 #end
61 </td>
62 <td>
63 *$refDoc.display("Project")*
64 </td>
65 <td>
66 $refDoc.display("Organization")
67 </td>
68 <td>
69 $refDoc.display("Usage").trim()
70 </td>
71 </tr>
72 #end
73 </table>

Get Connected