Title not coming into a detail page

9 posts by 2 authors in: Forums > CMS Builder
Last Post: February 22, 2011   (RSS)

By MercerDesign - February 17, 2011

I have created a list page, which will have special events on.
I have then told both list and detail pages to pull in the title of the first record to be a link to that page events page, this is working fine on most pages but on my news detail page no content is coming in, it works on other detail pages: Here is the url: http://www.ardingly.com/Ardingly_College_Sussex/News_Independent_Schools_Sussex/News_list.php
If you click on Find out more >> you will see that the link to the memorial cricket match disappears. I have tried changing the title field name etc.

Re: [Mercer Design] Title not coming into a detail page

By Jason - February 17, 2011

Hi,

Could you attach News_list.php and News_details.php so I can take a look at the code?

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] Title not coming into a detail page

By MercerDesign - February 18, 2011

Thanks, I have sorted it all out now.

Re: [Mercer Design] Title not coming into a detail page

By MercerDesign - February 18, 2011

I have a new problem now, I have a wysiwyg area on a list page for a banner image, it is pulling in other banner images from detail pages though, how can i limit it just to bring in the banner image from the first record.

Also I have got the first title coming in as a link from the list of records, unfortunately when you click on the second record on that page it changes that title, how can I make it so it keeps the first record from the list and not change it to the current record.

Re: [Mercer Design] Title not coming into a detail page

By Jason - February 18, 2011

Hi,

If you could attach your .php files, I should be able to give you a better example of how to do this.

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] Title not coming into a detail page

By MercerDesign - February 21, 2011

Please find attached my list and detail page.

Re: [Mercer Design] Title not coming into a detail page

By Jason - February 21, 2011

Hi,

I don't have the url's to these pages, so I'm having to do a little guess work as to where the problems are.

For the first problem of only displaying 1 banner instead of all of them. I'm assuming the issue is in Special_Event.php. If so, I think the problem is here:

<?php foreach ($special_eventRecords as $record): ?>
<?php echo $record['banner_image'] ?><br/>
<?php endforeach ?>


Here you're looping through all of the records and outputting their banner_image fields. Try replacing this code with this:

<?php echo $special_eventRecord['banner_image'] ?><br/>

As for the second issue, I'm not exactly sure where you're experiencing the problem. If you could let me know in which file you're seeing this issue and could provide a url so that I could see the problem in action, I'll see if I can help you out.

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: [Mercer Design] Title not coming into a detail page

By Jason - February 22, 2011

Hi,

Glad to hear everything is working now. Please let us know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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