Hi In my xwiki, I am displaying the list of documents in a space using the code given below. I want to paginate the listing if the list is very big. {{{ #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) - [${subdoc}] #end }}} I came across a macro that does pagination #pagedViewLinks(itemsPerPage totalPages crtPageNumber) ref -> http://www.xwiki.org/xwiki/bin/view/Code/PagedViewLinksMacro How can I get this macro work in my case ? Thanks and Regards Roopesh
Hi Roopesh, On Apr 26, 2007, at 8:20 AM, [email protected] wrote:
Hi
In my xwiki, I am displaying the list of documents in a space using the code given below. I want to paginate the listing if the list is very big.
{{{ #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) - [${subdoc}] #end }}}
I came across a macro that does pagination #pagedViewLinks (itemsPerPage totalPages crtPageNumber)
ref -> http://www.xwiki.org/xwiki/bin/view/Code/PagedViewLinksMacro
How can I get this macro work in my case ?
What is missing from the documentation you pointed? We need to know so that we can improve it as you're supposed to be able to use the macro just by reading the documentation :) Thanks -Vincent
I answered too fast, I know what's missing: how do you integrate your data with the macro. I'll add that information once I find out how it works... ;-) Thanks -Vincent On Apr 26, 2007, at 9:09 AM, Vincent Massol wrote:
Hi Roopesh,
On Apr 26, 2007, at 8:20 AM, [email protected] wrote:
Hi
In my xwiki, I am displaying the list of documents in a space using the code given below. I want to paginate the listing if the list is very big.
{{{ #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) - [${subdoc}] #end }}}
I came across a macro that does pagination #pagedViewLinks (itemsPerPage totalPages crtPageNumber)
ref -> http://www.xwiki.org/xwiki/bin/view/Code/PagedViewLinksMacro
How can I get this macro work in my case ?
What is missing from the documentation you pointed?
We need to know so that we can improve it as you're supposed to be able to use the macro just by reading the documentation :)
Thanks -Vincent
On Apr 26, 2007, at 9:12 AM, Vincent Massol wrote:
I answered too fast, I know what's missing: how do you integrate your data with the macro.
I'll add that information once I find out how it works... ;-)
ok, I've improved the doc on http://www.xwiki.org/xwiki/bin/view/Code/ PagedViewLinksMacro It should be better now. Thanks -Vincent
On Apr 26, 2007, at 9:09 AM, Vincent Massol wrote:
Hi Roopesh,
On Apr 26, 2007, at 8:20 AM, [email protected] wrote:
Hi
In my xwiki, I am displaying the list of documents in a space using the code given below. I want to paginate the listing if the list is very big.
{{{ #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) - [${subdoc}] #end }}}
I came across a macro that does pagination #pagedViewLinks (itemsPerPage totalPages crtPageNumber)
ref -> http://www.xwiki.org/xwiki/bin/view/Code/PagedViewLinksMacro
How can I get this macro work in my case ?
What is missing from the documentation you pointed?
We need to know so that we can improve it as you're supposed to be able to use the macro just by reading the documentation :)
Thanks -Vincent
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Hi Vincent, Thanks for the fast reply :-) Its a very useful piece of code. Now I have some unrelated doubt : In the newly added sample code I found $request.ipp, $request.page etc. My doubt is, is it possible to know the parameters that are passed while submitting a form in xwiki (Here by form I meant a template and by parameters I meant the name and value of, say, a text box in the template). Thanks and Regards Roopesh ------------------ DigitalGlue, India
On Apr 26, 2007, at 10:37 AM, Roopesh P Raj wrote:
Hi Vincent,
Thanks for the fast reply :-) Its a very useful piece of code.
Now I have some unrelated doubt : In the newly added sample code I found $request.ipp, $request.page etc. My doubt is, is it possible to know the parameters that are passed while submitting a form in xwiki (Here by form I meant a template and by parameters I meant the name and value of, say, a text box in the template).
A form can submit anything it wants... $request is a Servlet Request so all Servlet methods are available such as $request.getParameterNames(), etc. For example: #foreach ($item in $request.getParameterNames()) * $item #end -Vincent
participants (3)
-
Roopesh P Raj -
roopesh@digitalglue.in -
Vincent Massol