14: ##1.1 Panel List
15:
16:
Drag and drop panels to rearrange them inside a column or between columns. To add or remove panels, drag them from the list of available panels to one of the columns or from the column into the list, respectively.
17: #set($panelClass = $xwiki.getDocument("Panels.PanelClass").xWikiClass)
18: #set($categoryList = $panelClass.category.getProperty("values").value.split("[|]"))
19: #set($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Panels.PanelClass' and doc.fullName!='Panels.PanelTemplate'")
20: #set($panelsList = $xwiki.searchDocuments($sql))
21: #set($categoryMap = $xwiki.getHashMap())
22: #foreach($category in $categoryList)
23: $!categoryMap.put($category, $xwiki.getArrayList())
24: #end
25: #foreach ($item in $panelsList)
26: #set($obj = $xwiki.getDocument($item).getObject("Panels.PanelClass"))
27: #if($obj.type == 'view')
28: #set($arrayList = $categoryMap.get($obj.category))
29: #if($arrayList)
30: #set($discard = $categoryMap.get($obj.category).add($item))
31: ## TODO: uncategorized?
32: #end
33: #end
34: #end
35: ##
36: #set($panelsPerRow = 3)
37: {pre}
38:
39: #set($ajaxdoc = $xwiki.getDocument("Panels.AjaxEditor"))
40: #if($request.place)
41: #set($ajaxurl = $xwiki.getURL("Panels.PanelLayoutUpdate", "view", "xpage=plain&place=${request.place}"))
42: #else
43: #set($ajaxurl = $xwiki.getURL("Panels.PanelLayoutUpdate", "view", "xpage=plain"))
44: #end
45:
46:
47:
48:
95:
96: {/pre}
97:
98: ## start of accordion:
99:
100: #foreach($category in $categoryList)
101: ## start of accordion tab:
102:
103:
$category
104: ## start of accordion tab content:
105:
106: #set($categPanels = $categoryMap.get($category))
107: #if($categPanels.size() == 0)
108: There are no panels from this category.
109: #else
110: #foreach ($item in $categPanels)
111: #set($obj = $xwiki.getDocument($item).getObject("Panels.PanelClass"))
112:
113:
$doc.display("name", $obj)
114:
#if($panelsStatus.get($item) == "false")#displaypanel("$item")#else
#end
115:
116:
117: #end
118: #end
119: ## end of accordion tab content:
120:
121: ## end of accorion tab:
122:
123: ## end of foreach:
124: #end
125: ## end of accordion:
126:
127: ## end of allpanels div
128:
129: ## end of PanelsListSection
130:
131: ##1.1 Page Layout
132:
133: Choose a page layout:
134:
135: #set($crtlayout = 0)
136: #if($showLeftPanels and $showLeftPanels == "1")
137: #set($crtlayout = $crtlayout + 1)
138: #end
139: #if($showRightPanels and $showRightPanels == "1")
140: #set($crtlayout = $crtlayout + 2)
141: #end
142:
143:
144:
145:
146:
149: ##
150:
151:
154:
155: |
156:
157:
160: ##
161:
162:
166:
167: |
168:
169:
172: ##
173:
174:
178:
179: |
180:
181:
184:
185:
190:
191: |
192:
193:
194:
195:
196:
## xwikieditcontent
197: