[SOLVED] How can I change where the pagination appears?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
openeye
Posts: 11
Joined: Thu Mar 28, 2013 6:39 pm

[SOLVED] How can I change where the pagination appears?

Post by openeye »

When a user completes a search, the pagination appears and works perfectly. However, the pagination links appear above the search results, instead of below. I'd like to move them below the search results, but I can't figure out how to do it. As far as I can tell from looking at the code, they should appear below the search results, but that's not what's happening. Can anyone point me in the right direction?
Last edited by openeye on Thu Apr 04, 2013 8:57 pm, edited 1 time in total.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How can I change where the pagination appears?

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
openeye
Posts: 11
Joined: Thu Mar 28, 2013 6:39 pm

Re: How can I change where the pagination appears?

Post by openeye »

Oops, forgot to mention that, huh?

I use 2.7.9.

Thanks, Thorsten.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How can I change where the pagination appears?

Post by Thorsten »

Hi,

I checked the code and the functionality of the pagination and it appears at the bottom of the page, you can check this even in our own FAQ: http://faq.phpmyfaq.de/?searchcategory= ... mit=Search

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
openeye
Posts: 11
Joined: Thu Mar 28, 2013 6:39 pm

Re: How can I change where the pagination appears?

Post by openeye »

Hmm. In that case, mine is behaving very oddly.

My template is heavily modified, but you can see the result here. Note the pagination appears in the DOM above the search results table.

Yet in my template file, here's the code:

Code: Select all

...search inputs
</form>
<br /><br />
                  
<table cellpadding="0" cellspacing="0" border="0" class="faq_table">
  <thead>
    <tr>
      <th width="25%">Product Family</th>
      <th width="65%">Summary</th>
      <th width="10%" class="faq_id">FAQ ID</th>
    </tr>
  </thead>
  <tbody>
    {printResult}
  </tbody>
</table>
As you can see, {printResult} is inside the table. I initially thought it might just be a CSS issue, but since the pagination appears outside of the table, that is clearly not the case. Any thoughts?

For the record, I didn't design this site or write the awful HTML. It's just a project I inherited.

Also, welcome back. I hope your vacation was a good one.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How can I change where the pagination appears?

Post by Thorsten »

Hi,

vacation was great.

I think this is an HTML issue which causes the browser rendering crap :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
openeye
Posts: 11
Joined: Thu Mar 28, 2013 6:39 pm

Re: How can I change where the pagination appears?

Post by openeye »

I found the mistake. I just wasn't thinking clearly.

And you were right, it was an HTML issue.

Thanks again!
Post Reply