Customizing the Detail Pages
8 posts by 2 authors in: Forums > CMS Builder
Last Post: April 15, 2010 (RSS)
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
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: [dccreatives] Customizing the Detail Pages
By Jason - April 15, 2010
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
Re: [dccreatives] Customizing the Detail Pages
By Jason - April 15, 2010
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
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.
Re: [dccreatives] Customizing the Detail Pages
By Jason - April 15, 2010
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/