Putting prev-link, page-index and back-link into another blo

A place for users and developers of the Xataface to discuss and receive support.

Postby Markus » Wed Sep 05, 2007 4:49 am

Hi Steve,

I have a problem with the page-index. I have a table now with more than 1000 records. When I look at it in list view there is the page-index, which is like
123456789... Next>>. The result controller shows 30 records per page, so there should be some more than 9 pages. Having this status, you can not go to e.g. page 12 or 13 directly. Also, If you are on page 9 and you click Next, the page-index stays 123456789... though you are on page 10, 11, 12 and so on

If I click on the NEXT>> link I have another problem. The <> which does not only look ugly but also forces the following block which is my list table to the right out of the screen which is even more ugly.

Now I thought of better having the whole page-index in list view in another block where there is more space for it, let's say block__before_result_list and / or block__after_result_list

One thing I did already was to comment out the code of prev-link, page-index and back-link in the Dataface_ResultListController.html template which makes it disappear.

But how would I get it into the right blocks and even more important:
How can I extend the page-index to show really all pages giving the possibility to reach them directly.

First thing I did I put a

function block__before_result_list() {
echo 'New Content';
}

in my ApplicationDelegate.php which works.

Instead of New Content I would like to have the prev-link, page-index and back-link here.

Can you give me some hints?

Markus
Markus
 
Posts: 94
Joined: Wed Dec 31, 1969 5:00 pm

Postby Markus » Wed Sep 05, 2007 4:59 am

Completion of last posts Second Paragraph: If I click on the NEXT>> link <<> link.
Markus
 
Posts: 94
Joined: Wed Dec 31, 1969 5:00 pm

Postby Markus » Fri Sep 07, 2007 7:20 am

Hi Steve,

the not complete posting once again:

I have a problem with the page-index. I have a table now with more than 1000 records. When I look at it in list view there is the page-index, which is like
123456789... Next>>. The result controller shows 30 records per page, so there should be some more than 9 pages. Having this status, you can not go to e.g. page 12 or 13 directly. Also, If you are on page 9 and you click Next, the page-index stays 123456789... though you are on page 10, 11, 12 and so on

If I click on the NEXT>> link I have another problem. The Back-Link shows up and causes a line break between the page-index and the Next-Link which does not only look ugly but also forces the following block which is my list table to the right out of the screen which is even more ugly.

Now I thought of better having the whole page-index in list view in another block where there is more space for it, let's say block__before_result_list and / or block__after_result_list

One thing I did already was to comment out the code of prev-link, page-index and back-link in the Dataface_ResultListController.html template which makes it disappear.

But how would I get it into the right blocks and even more important:
How can I extend the page-index to show really all pages giving the possibility to reach them directly.

First thing I did I put a

function block__before_result_list() {
echo 'New Content';
}

in my ApplicationDelegate.php which works.

Instead of New Content I would like to have the prev-link, page-index and back-link here.

Can you give me some hints?

Markus
Markus
 
Posts: 94
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved