Field displaying on new page

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 26, 2013   (RSS)

By Kittybiccy - July 26, 2013

I'm currently working on a design for a new site which will be using CMS Builder. With one record (will be a multi record) there will be several fields - title, content, cast list, uploads etc. Is it possible for one of those fields to open in a separate page? I wanted the title, content and uploads displayed on the detail page and there be a link to the cast list field which when clicked, displayed the cast list field in a new page. This is to stop each record being a huge long page!

Any ideas how this could be done?

Thanks! Hannah

By gregThomas - July 26, 2013

Hi Hannah, 

This should be fairly easy to do. On your first detail page, you could create a link to your cast list page like this:

<a href="cast.php?<?php echo urlencode($record['title']).$record['num']; ?>" >Cast Detail Page</a>

This is just example code, so you'll have to make a few changes to get it working with your site.

In this example I'm assuming that your detail page records are stored in an array called $record, and that you have a title field.

Then on your cast.php page you would use the normal getRecords function that you would use on a detail page to retrieve all of the records, including the cast list.

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com