Records on more than one page?

9 posts by 2 authors in: Forums > CMS Builder
Last Post: April 13, 2009   (RSS)

Is the following possible?

The client site I am currently building has the main graphics site AND a text-only site. Both are on the same URL - the text-only version is in its own directory. I have built the main graphics site with a listings page and details page - splendid!

I had thought that I could add the same code to the text-only site - so that when records are updated within the CMS, the same information would show on both the full graphics site AND the text-only site.

I was just about to do this and then realized that I can only add viewer URLs for one listing page and one detail page.

If the above makes any sense to anyone, is what I'm trying to do possible?

Re: [Amaranta123] Records on more than one page?

By ross - April 9, 2009

Hi there.

Thanks for posting!

You can have the viewer code on as many different pages as you like so you could actually setup 100 different versions of the same list if that was needed.

The thing you've noticed though is that in the section editor, you can only enter one detail page name and one list page name.

What you want to do on your text only version is put the exact same viewer code but when you are linking from the list page to detail page, hardcode the page name instead of using the $record['_link'] variable.

Does that make sense?

On your main graphic page you would have a link like this:

<a href="<?php echo $record['_link']; ?>
Read More
</a>

but that will change on your text only page to something like this:

<a href="textOnlyDetailPage.php?<?php echo $record['num']; ?>
Read More
</a>

You need that 'num' part in there so the detail page works.

Give this a shot and let me know how you make out :).
-----------------------------------------------------------
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] Records on more than one page?

That sounds fantastic Ross - and opens up a lot of possibilities for future sites. I'm going to give it a try now. Thanks!

Re: [Amaranta123] Records on more than one page?

By ross - April 9, 2009

Hi.

That's interesting. Could you post a copy of the page you are working with and a copy of the database scheme file for that section (you'll find the schema in the /data/schema folder).

I'll do some testing for you :).
-----------------------------------------------------------
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] Records on more than one page?

Hi Ross,

Here's the link:
http://highpointe.accountsupport.com/text/toursdetail.php

Schema what? :) I'll take a look.

Re: [Amaranta123] Records on more than one page?

By ross - April 9, 2009

Hi.

Thanks for the link

Could you actualy post this file as an attachment? From there, I can give you a better idea of where to find the schema. It's just another file on your server in the data folder but I don't know which one just yet. Post the page you linked me to and we'll go from there. 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] Records on more than one page?

Is the attached what you need?
Attachments:

schema.txt 7K

Re: [Amaranta123] Records on more than one page?

By ross - April 13, 2009

Hi there.

Not quite :). I was hoping you could post toursdetail.php as an attachment. I'd like to see the code on that page.

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/