3 users online. Create an account or sign in to join them.Users

Search

Cant’t get any idea how to set pagination for DS. Please can someone whrite step by step instruction how to make it work?

In the data source editor you should be able to set the current page using the Show page x of results. It’s possible to use a custom parameter for this setting.

For more information about the pagination in your data source output, don’t forget to include the pagination element in the Included elements list.

If you need to set up a page navigation, have a look a Nick’s template at http://symphony-cms.com/discuss/thread/550/.

Not that urgent :-P

There are many many threads on the forum dealing with setting up pagination. At some point we’ll definitely write up a tutorial, but for now this will have to do…

Not that urgent :-P

Maybe ibcico is lost on a not yet existing second page of this thread ;)

at that moment it was ) but i let it go for the time ) I cant understand one easy thing show page X i write say “1” so i get current-page=”1” in xml with the corresponding entries. How do i get current-page=”2”? what exactlt and where should i write it? what parameters and where to should i pass? what should i do before that with pages or whatever?

speaking about forum threads ) that’s a reasonable thing to start searching and reading rather than wait for a urgent )) response… the thing is that I failed to find what i need. I’ll be grateful if anyone would give me a link where i can find asnwers…

About pagination template.. Before getting into it I’d rather understand how it all works on the whole.

If you want to have URLs like /foobar/?page=2, then you’d use {$url-page} in that field, if you want URLs like /foobar/2/, then modify your pages URL Parameters to include page and then enter {$page} into the field.

Hope that helps.

I keep a local list of articles I want to write. My plan for a Pagination tutorial reads:

Pagination

to buzzomatic Thanks a lot! Now I get it! The principle that I couldnt understand that the parameter can be passed dynamically and the only way to pass it is url by the way ))) and to get the parameter from url you just have to get the value of the variable in url that accepts that parameter. That’s it.

Here it small how to for the like of me. At least how I’ve got it so far

  1. On creating page add url parameter say “page-number” that is for every page you get variable $page-number
  2. On creating Data Source put that variable into “show page __{$page-number}__of results”
  3. That will allow you change the value of xml node pagination attribute current-page depending on the variable received from url parameter.

That’s it ))

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details