Customizing the Detail Pages

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

By dccreatives - April 14, 2010

I am trying to customize my pages. I am trying to take the shortcuts and place them where I want them, but I keep getting errors:

Notice: Undefined variable: record in /services/webpages/a/x/axislighting.com/public/CMS/diaHome.php on line 97 Warning: Invalid argument supplied for foreach() in /services/webpages/a/x/axislighting.com/public/CMS/diaHome.php on line 97

All I tried to do was move the logo to the desired area. Am I missing code somewhere?

Here s the page:http://axislighting.com/CMS/diaHome.php?Dia1

Please advise.

I thought I can take these shortcuts and place them anywhere in my design to get them to show in my designs.

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