How to include 2 multi record lists from same table

7 posts by 2 authors in: Forums > CMS Builder
Last Post: November 2, 2009   (RSS)

By (Deleted User) - October 27, 2009

You may say it's easy to include two lists on a page from a multi record - simple you just include the echo code twice right? Wrong, let me explain.

I have a main page that includes a list of multi records from tableName guided_tour - they are limited to displaying only 2 at a time using the perPage of 2.

I would also like to include a list in the footer and limit this to say 4. It's easy to do if the footer is on a page that doesn't already contain the guided_tour tableName but how can I do it if it does??

Thanks Jonathan

Re: [ross] How to include 2 multi record lists from same table

By (Deleted User) - October 28, 2009

Ross,

This is great. Yes as soon as you explain, it all makes sense - I will understand it all one day no doubt! Oh and it works just fine!

Thanks Jono.

Re: [ross] How to include 2 multi record lists from same table

By (Deleted User) - October 30, 2009

I like to have my sites organized and I wanted to include the footer within an include. That way if I needed to change anything in the footer I just need to change the one file.

However this second multi record list doesn't work in includes - will I need to include this bit of the code at the foot of every page for it to work?

Thanks Jono

Re: [jonoc73] How to include 2 multi record lists from same table

By ross - November 2, 2009

Hi.

Interesting. You should be able to have the header code in the include so that it's always just the one file.

Could you attach a copy of one of your pages as well as the footer include to a reply so I can see how it's setup?

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] How to include 2 multi record lists from same table

By (Deleted User) - November 2, 2009

Hi Ross, I have updated the page to have this include in the footer. Details are in the email I sent to you on the 30th Oct.

Thanks Jono

Re: [jonoc73] How to include 2 multi record lists from same table

By ross - November 2, 2009

Hi there.

Whoops. I didn't realize this was all the same thing :). I'll be going through my email as quick as possible and get back to you with some ideas :).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/