Wiki source code of Pagination

Version 14.1 by Ecaterina Moraru (Valica) on 2009/03/25

Show last authors
1 1 Pagination
2
3 Insert description here.
4 * [Upper Navigation > http://platform.xwiki.org/xwiki/bin/view/DevGuide/Pagination#1]
5
6 1.1 Live example
7
8 See [http://incubator.myxwiki.org/xwiki/bin/view/Main/ListWebSearch]
9
10 1.1 <span id="1">Upper navigation</span>
11
12 1.1.1 CSS
13
14 Filters CSS:
15 {code}
16 .searchFilters{
17 clear: both;
18 font-size: 90%;
19 }
20 #sortFilter{
21 color: #aaa;
22 padding: 5px;
23 line-height: 16px;
24 }
25 #sortFilter a.sortType{
26 color: #aaa;
27 }
28 #sortFilter a.sortType:hover{
29 color: #4D4D4D;
30 }
31 #sortFilter a#currentSort{
32 color: #4D4D4D;
33 font-weight: bold;
34 }
35 #sortFilter a.sortType:focus,
36 #sortFilter a#currentSort:focus {
37 outline: dotted 1px #000;
38 }
39 {code}
40
41 Pagination with number of result pages displayed:
42 {code}
43 .paginationFilter {
44 color: #aaa;
45 height: 100%;
46 border-top: 1px solid #CCCCCC;
47 padding: 2px 0px 5px 5px;
48 display: block;
49 line-height: 22px;
50 }
51 .resultsNo{
52 float: left;
53 }
54 .resultsNo .currentResultsNo, .resultsNo .totalResultsNo{
55 color: #aaa;
56 }
57 .pagination{
58 float: right;
59 margin-right: 10px;
60 }
61 .pagination a{
62 color: #aaa;
63 }
64 .pagination a:hover{
65 color: #4D4D4D;
66 }
67 .pagination a.currentPagination{
68 color: #4D4D4D;
69 font-weight: bold;
70 }
71 .pagination a:focus {
72 outline: dotted 1px #000;
73 }
74 .controlPagination{
75 position:relative;
76 width:42px;
77 height:22px;
78 overflow:hidden;
79 margin:0!important;
80 padding:0!important;
81 float: right;
82 }
83 .controlPagination a{
84 position:absolute;
85 top:0;
86 left:0;
87 text-indent:-1000em;
88 line-height:25px;
89 outline:none;
90 overflow:hidden;
91 border:none;
92 }
93 .controlPagination a.prevPagination {
94 background-position:left top;
95 background-image:url($xwiki.getSkinFile("navigation.png"));
96 width: 21px;
97 height: 22px;
98 }
99 .controlPagination a.noPrevPagination{
100 background-position:left bottom;
101 background-image:url($xwiki.getSkinFile("navigation.png"));
102 width: 21px;
103 height: 22px;
104 }
105 .controlPagination a.nextPagination {
106 background-position:right top;
107 background-image:url($xwiki.getSkinFile("navigation.png"));
108 width: 21px;
109 height: 22px;
110 left: 21px;
111 }
112 .controlPagination a.noNextPagination {
113 background-position:right bottom;
114 background-image:url($xwiki.getSkinFile("navigation.png"));
115 width: 21px;
116 height: 22px;
117 left: 21px;
118 {code}
119
120 1.1.1 HTML Code
121
122 {code}
123 <div class="searchFilters">
124
125 <div id="sortFilter">
126 $msg.get("xe.search.filters.sort")
127 <a href="" id="currentSort" title="$msg.get('xe.search.filters.relevance.title')">$msg.get("xe.search.filters.relevance")</a>
128 <a href="" class="sortType" title="$msg.get('xe.search.filters.date.title')">$msg.get("xe.search.filters.date")</a>
129 <a href="" class="sortType" title="$msg.get('xe.search.filters.rating.title')">$msg.get("xe.search.filters.rating")</a>
130 <a href="" class="sortType" title="$msg.get('xe.search.filters.popularity.title')">$msg.get("xe.search.filters.popularity")</a>
131 </div>
132
133 <div class="paginationFilter">
134
135 <span class="resultsNo">$msg.get("xe.search.filters.results") <span class="currentResultsNo">6-30</span> $msg.get("xe.search.filters.results.of") <span class="totalResultsNo">50</span></span>
136
137 <span class="controlPagination">
138 <a href="#" title="$msg.get('xe.search.filters.page.prev.title')" class="prevPagination"></a>
139 <a href="#" title="$msg.get('xe.search.filters.page.next.title')" class="nextPagination"></a>
140 </span>
141 <span class="pagination">$msg.get("xe.search.filters.page")
142 <a href="" title="$msg.get('xe.search.filters.page.title',['1'])">1</a>
143 <a href="" class="currentPagination" title="$msg.get('xe.search.filters.page.title',['2'])">2</a>
144 <a href="" title="$msg.get('xe.search.filters.page.title',['3'])">3</a>
145 <a href="" title="$msg.get('xe.search.filters.page.title',['4'])">4</a>
146 <a href="" title="$msg.get('xe.search.filters.page.title',['5'])">5</a>
147 <a href="" title="$msg.get('xe.search.filters.page.title',['6'])">6</a>
148 <a href="" title="$msg.get('xe.search.filters.page.title',['7'])">7</a>
149 <a href="" title="$msg.get('xe.search.filters.page.title',['8'])">8</a>
150 <a href="" title="$msg.get('xe.search.filters.page.title',['9'])">9</a>
151 </span>
152 </div>
153 </div>
154 {code}
155
156 1.1 Bottom Navigation
157
158 This is a lighter version of the Upper Navigation, keeping only the pagination controls.
159
160 1.1.1 CSS
161
162 Container:
163 {code}
164 .paginationFooter{
165 display: block;
166 clear: both;
167 text-align: right;
168 font-size: 90%;
169 }
170 {code}
171
172 Same as in Upper navigation:
173 {code}
174 .paginationFilter {
175 color: #aaa;
176 height: 100%;
177 border-top: 1px solid #CCCCCC;
178 padding: 2px 0px 5px 5px;
179 display: block;
180 line-height: 22px;
181 }
182 .pagination{
183 float: right;
184 margin-right: 10px;
185 }
186 .pagination a{
187 color: #aaa;
188 }
189 .pagination a:hover{
190 color: #4D4D4D;
191 }
192 .pagination a.currentPagination{
193 color: #4D4D4D;
194 font-weight: bold;
195 }
196 .pagination a:focus {
197 outline: dotted 1px #000;
198 }
199 .controlPagination{
200 position:relative;
201 width:42px;
202 height:22px;
203 overflow:hidden;
204 margin:0!important;
205 padding:0!important;
206 float: right;
207 }
208 .controlPagination a{
209 position:absolute;
210 top:0;
211 left:0;
212 text-indent:-1000em;
213 line-height:25px;
214 outline:none;
215 overflow:hidden;
216 border:none;
217 }
218 .controlPagination a.prevPagination {
219 background-position:left top;
220 background-image:url($xwiki.getSkinFile("navigation.png"));
221 width: 21px;
222 height: 22px;
223 }
224 .controlPagination a.noPrevPagination{
225 background-position:left bottom;
226 background-image:url($xwiki.getSkinFile("navigation.png"));
227 width: 21px;
228 height: 22px;
229 }
230 .controlPagination a.nextPagination {
231 background-position:right top;
232 background-image:url($xwiki.getSkinFile("navigation.png"));
233 width: 21px;
234 height: 22px;
235 left: 21px;
236 }
237 .controlPagination a.noNextPagination {
238 background-position:right bottom;
239 background-image:url($xwiki.getSkinFile("navigation.png"));
240 width: 21px;
241 height: 22px;
242 left: 21px;
243 {code}
244
245 1.1.1 HTML Code
246
247 {code}
248 <div class="paginationFooter">
249 <div class="paginationFilter">
250 <span class="controlPagination">
251 <a href="#" title="$msg.get('xe.search.filters.page.prev.title')" class="noPrevPagination"></a>
252 <a href="#" title="$msg.get('xe.search.filters.page.next.title')" class="noNextPagination"></a>
253 </span>
254 <span class="pagination">
255 $msg.get("xe.search.filters.page")
256 <a href="" title="$msg.get('xe.search.filters.page.title',['1'])">1</a>
257 <a href="" class="currentPagination" title="$msg.get('xe.search.filters.page.title',['2'])">2</a>
258 <a href="" title="$msg.get('xe.search.filters.page.title',['3'])">3</a>
259 <a href="" title="$msg.get('xe.search.filters.page.title',['4'])">4</a>
260 <a href="" title="$msg.get('xe.search.filters.page.title',['5'])">5</a>
261 <a href="" title="$msg.get('xe.search.filters.page.title',['6'])">6</a>
262 <a href="" title="$msg.get('xe.search.filters.page.title',['7'])">7</a>
263 <a href="" title="$msg.get('xe.search.filters.page.title',['8'])">8</a>
264 <a href="" title="$msg.get('xe.search.filters.page.title',['9'])">9</a>
265 </span>
266 </div>
267 </div>
268 {code}
269
270 1.1 Dependencies
271
272 1.1.1 Icons
273
274 navigation.png
275
276 1.1.1 Translations
277
278 1.1.1.1 Sort Translations
279
280 xe.search.filters.sort=Sort:
281
282 xe.search.filters.relevance=Relevance
283
284 xe.search.filters.relevance.title=Sort by Relevance
285
286 xe.search.filters.date=Date
287
288 xe.search.filters.date.title=Sort by Date
289
290 xe.search.filters.rating=Rating
291
292 xe.search.filters.rating.title=Sort by Rating
293
294 xe.search.filters.popularity=Popularity
295
296 xe.search.filters.popularity.title=Sort by Popularity
297
298 1.1.1.1 Navigation Translations
299
300 xe.search.filters.results=Results
301
302 xe.search.filters.results.of=out of
303
304 xe.search.filters.page=Page
305
306 xe.search.filters.page.title=Page {0}
307
308 xe.search.filters.page.prev.title=Previous Page
309
310 xe.search.filters.page.next.title=Next Page

Get Connected