Customizing the Detail Pages

8 posts by 2 authors in: Forums > CMS Builder
Last Post: April 15, 2010   (RSS)

Re: [dccreatives] Customizing the Detail Pages

By Jason - April 14, 2010

Hi,

If you attach diaHome.php, I'll take a look at it for you.

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] Customizing the Detail Pages

By dccreatives - April 15, 2010

Here's the page.

Re: [dccreatives] Customizing the Detail Pages

By Jason - April 15, 2010

Sorry, the page didn't come through for some reason. Could you try posting it again.

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] Customizing the Detail Pages

By dccreatives - April 15, 2010

Sorry, I think I did not click 'Upload Attachment'
Attachments:

diahome.php 14K

Re: [dccreatives] Customizing the Detail Pages

By Jason - April 15, 2010

Hi,

The problem here was that the variable $record that is being used on line 97 hasn't been defined yet. The only variable we have at that point is $brandsRecords. Try putting this line right about line 97.
<?php $record=$brandsRecords[0] ?>

This retrieves the first $brandsRecords element and stores it in $record. We would then have access to $record['uploads'].

Give that a try and let me know if it works for you.

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] Customizing the Detail Pages

By dccreatives - April 15, 2010

Thanks, I am getting the hang of it. Still getting one error and not sure why:

http://www.axislighting.com/CMS/diaHome.php?Dia1

Here's a link to the page. All the center images are being called dynamically. However the main_image, is still giving me an undefined variable error.I placed the record in the breadcrumbs to make sure that the variables are defined.

I am uploading it again.
Attachments:

diahome_001.php 10K

Re: [dccreatives] Customizing the Detail Pages

By Jason - April 15, 2010

Hi,

The variable $record is not being defined. Try replacing your foreach loop on line 186 with this:
<?php foreach ($brandsRecord['main_image'] as $upload): ?>

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/