Changes for page Pages on this Wiki

Last modified by Vincent Massol on 2017/12/15 10:37

From version 1.1 Icon
edited by Administrator
on 2008/12/08 08:19
Change comment: There is no comment for this version
To version Icon 2.1 Icon
edited by Administrator
on 2011/03/20 23:07
Change comment: Imported from XAR

Summary

Details

Icon Page properties
Title
... ... @@ -1,0 +1,1 @@
1 +$msg.get("xe.index.documents")
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 1.0
1 +XWiki 2.0
Content
... ... @@ -1,38 +1,60 @@
1 -1 $msg.get("xe.index.documents")
2 -#if((!$view) || ($view == ""))
3 - #set($view = $request.getParameter("view"))
4 - #if((!$view) || ($view == ""))
5 - #set ($view = "index")
1 +{{velocity}}
2 +#if("$!{view}" == '')
3 + #set($view = $request.getParameter('view'))
4 + #if("$!{view}" == '')
5 + #set ($view = 'index')
6 6   #end
7 7  #end
8 +#macro(indexTab $tabname $idSuffix $translationKeySuffix)
9 +<li id="xwiki${idSuffix}"#if($view == $tabname) class="active"#end><a href="$doc.getURL('view', "view=${tabname}&amp;$!param")">$msg.get("xe.index${translationKeySuffix}")</a></li>
10 +#end
11 +{{html}}
8 8  <div class="floatcontainer">
9 9  <ul class="xwikitabbar">
10 -<li id="xwikiindex"#if($view == "index") class="active"#end><a href="$doc.getURL("view", "view=index&amp;$!param")">$msg.get("xe.index")</a></li>
11 -<li id="xwikitreeview"#if($view == "tree") class="active"#end><a href="$doc.getURL("view", "view=tree&amp;$!param")">$msg.get("xe.index.tree")</a></li>
12 -<li id="xwikiorphansview"#if($view == "orphans") class="active"#end><a href="$doc.getURL("view", "view=orphans&amp;$!param")">$msg.get("xe.index.orphaned")</a></li>
13 -<li id="xwikiattachments"#if($view == "attachments") class="active"#end><a href="$doc.getURL("view", "view=attachments&amp;$!param")">$msg.get("xe.index.attachments")</a></li>
14 +#indexTab('index', 'index', '')
15 +#indexTab('tree', 'treeview', '.tree')
16 +#indexTab('orphans', 'orphansview', '.orphaned')
17 +#indexTab('attachments', 'attachments', '.attachments')
18 +#indexTab('deletedDocs', 'deletedDocs', '.documentsTrash')
19 +#indexTab('deletedAttachments', 'deletedAttachments', '.attachmentsTrash')
14 14  </ul>
15 15  </div>
16 -<div id="xwikieditcontent" class="clear">
22 +<div class="xwikitabpanescontainer">
23 +{{/html}}
24 +
17 17  ## ==============================================
18 18  ## If view=index then displays the index of pages
19 19  ## ==============================================
20 -#if ($view == "index")
21 -#includeTopic("XWiki.Tableview")
22 -#elseif ($view == "tree")
28 +#if ($view == 'index')
29 +{{include document="XWiki.Tableview" /}}
30 +#elseif ($view == 'tree')
23 23  ## ==============================================
24 24  ## If view=tree then displays the treeview
25 25  ## ==============================================
26 -#includeTopic("XWiki.Treeview")
27 -#elseif ($view == "attachments")
34 +{{include document="XWiki.Treeview" /}}
35 +#elseif ($view == 'attachments')
28 28  ## ==============================================
29 29  ## If view=attachments then display attachments
30 30  ## ==============================================
31 -#includeTopic("XWiki.AllAttachments")
32 -#else
39 +{{include document="XWiki.AllAttachments" /}}
40 +#elseif ($view == 'orphans')
33 33  ## ==============================================
34 34  ## If view=orphans then display orphans
35 35  ## ==============================================
36 -#includeTopic("XWiki.OrphanedPages")
44 +{{include document="XWiki.OrphanedPages" /}}
45 +#elseif ($view == 'deletedDocs')
46 +## ==============================================
47 +## If view=deletedDocs then display the recycle bin
48 +## ==============================================
49 +{{include document="XWiki.DeletedDocuments" /}}
50 +#elseif ($view == 'deletedAttachments')
51 +## ==============================================
52 +## If view=deletedAttachments then display the attachment trash
53 +## ==============================================
54 +{{include document="XWiki.DeletedAttachments" /}}
37 37  #end
56 +
57 +{{html}}
38 38  </div>
59 +{{/html}}
60 +{{/velocity}}