Next and Back links

9 posts by 3 authors in: Forums > CMS Builder
Last Post: May 4, 2010   (RSS)

By KCMedia - May 2, 2010

Hi

I was just testing the next and back link pages on this site page and it isnt working

www.actionmc.com.au/test.php

also i have attached the test file with the code.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

test_007.php 31K

Re: [kcmedia] Next and Back links

By zip222 - May 3, 2010

Do you have more than three records entered into the CMS? If not, then the previous and back buttons won't show up as links since there are no more records to show.

Re: [kcmedia] Next and Back links

By Jason - May 3, 2010

Hi,

When you're selecting your records, you're using this code:

list($used_motorcyclesRecords, $used_motorcyclesMetaData) = getRecords(array(
'tableName' => 'used_motorcycles',
'limit' => '3',
));


The "limit" option means it will only return the first 3 records. Try replacing it with this:

list($used_motorcyclesRecords, $used_motorcyclesMetaData) = getRecords(array(
'tableName' => 'used_motorcycles',
'perPage' => '3',
));


This will only display 3 records per page. You can change the number 3 with however many records you want displayed on a single page.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Next and Back links

By KCMedia - May 3, 2010

I know that but i have 20 products in cms at the moment and i changed it from 10 products to make sure it was working.

But i still dont get the back and next links.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Next and Back links

By Jason - May 3, 2010

Hi,

Could you repost your .php file so I can take a look at it.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Next and Back links

By KCMedia - May 3, 2010 - edited: May 3, 2010

Hi Jason

here you go.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz
Attachments:

test_008.php 31K

Re: [kcmedia] Next and Back links

By KCMedia - May 3, 2010

Hi Jason

I got it working but now when i click on the next link i get a Record not found on the page.
Thanks



Craig

KC Media Solutions

www.kcmedia.biz

Re: [kcmedia] Next and Back links

By Jason - May 4, 2010

Hi,

Awesome! Glad to hear that everything is working.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/