Blank Page
2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 18, 2009 (RSS)
By s2smedia - May 15, 2009
Ive used CMS Builder before and never had this problem. Im using the new version for this new client, might me a new setting im not getting.
heres the test link:
guaranteedonsite.sight2sitemedia.net
heres the code:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "/XXXXXX/lib/viewer_functions.php";
list($seo_managerRecords, $seo_managerMetaData) = getRecords(array(
'tableName' => 'seo_manager',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$seo_managerRecord = @$seo_managerRecords[0]; // get first record
?>
<?php
require_once "XXXXXXXX/lib/viewer_functions.php";
list($productsRecords, $productsMetaData) = getRecords(array(
'tableName' => 'products',
));
?>
...................
<?php foreach ($productsRecords as $record): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="services">
<tr>
<td width="100" align="left" valign="top" style="padding:0px 10px 10px 0px">
<?php foreach ($record['product_image'] as $upload): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
<?php endif ?>
<?php endforeach ?>
</td>
<td align="left" valign="top"><span class="subheader_red"><?php echo $record['title'] ?></span><br />
<br />
<?php echo $record['description'] ?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" style="padding:15px 0px 15px 0px"><img src="images/line2.jpg" width="510" height="1" alt="-" /></td>
</tr>
</table>
<?php endforeach; ?>
....................
heres the test link:
guaranteedonsite.sight2sitemedia.net
heres the code:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "/XXXXXX/lib/viewer_functions.php";
list($seo_managerRecords, $seo_managerMetaData) = getRecords(array(
'tableName' => 'seo_manager',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$seo_managerRecord = @$seo_managerRecords[0]; // get first record
?>
<?php
require_once "XXXXXXXX/lib/viewer_functions.php";
list($productsRecords, $productsMetaData) = getRecords(array(
'tableName' => 'products',
));
?>
...................
<?php foreach ($productsRecords as $record): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="services">
<tr>
<td width="100" align="left" valign="top" style="padding:0px 10px 10px 0px">
<?php foreach ($record['product_image'] as $upload): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
<?php endif ?>
<?php endforeach ?>
</td>
<td align="left" valign="top"><span class="subheader_red"><?php echo $record['title'] ?></span><br />
<br />
<?php echo $record['description'] ?></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" style="padding:15px 0px 15px 0px"><img src="images/line2.jpg" width="510" height="1" alt="-" /></td>
</tr>
</table>
<?php endforeach; ?>
....................
Re: [s2smedia] Blank Page
By ross - May 18, 2009
Hi there
Thanks for posting!
I don't quite understand what the problem is here. Your post is titled "Blank Page" but the page isn't blank. Do you mean that nothing is appearing where you have your PHP code?
One thing I have noticed though is your viewer code at the top is set for a detail page. What that means is you need to have a record number in the URL. You can hardcode that into the viewer code if you like though.
I am just not quite sure what you are trying to do here. Did you only need one article from that section to appear? Or were you needing to have a list of articles?
Let me know and we'll go from there. Thanks!
Thanks for posting!
I don't quite understand what the problem is here. Your post is titled "Blank Page" but the page isn't blank. Do you mean that nothing is appearing where you have your PHP code?
One thing I have noticed though is your viewer code at the top is set for a detail page. What that means is you need to have a record number in the URL. You can hardcode that into the viewer code if you like though.
I am just not quite sure what you are trying to do here. Did you only need one article from that section to appear? Or were you needing to have a list of articles?
Let me know and we'll go from there. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/