I need a little help with a Multi viewer page...

4 posts by 2 authors in: Forums > CMS Builder
Last Post: November 12, 2012   (RSS)

It's been a long time since I worked with this program and I'm having trouble getting the records to appear they way I want them too. I'm trying to get a list column on the right with the links appearing with the name and a thumbnail image. I want the left column to show the record details. The details are showing up with every image and I can't figure out how to stop that.

I'm not sure about the best way to go about it. Basically I have one main image for the detail, a thumbnail image that I want in the right column as part of the menu list, and another image I uploaded to place as a header and another image to use as a link image.

http://electricbluemoon.com/a2b_bikes.php?1
Any help or suggestions would be greatly appreciated.

Re: [greg] I need a little help with a Multi viewer page...

Thanks Greg. I attached the .php and a .jpg with the idea of how I want it to look.
Attachments:

a2b_bikes.php 6K

design.jpg 157K

Re: [Izadorra] I need a little help with a Multi viewer page...

Hi,

I've just had a look at the linked page and it looks like you've fixed the issues you mentioned. It looked as if the details were showing up for each image because you had the closing tag for the image foreach loop after the product details, changing your code to something like this would fix it:

<?php foreach ($detailRecord['images'] as $index => $upload): ?>
Upload Url: <?php echo $upload['urlPath'] ?><br/>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
<?php endforeach ?>
Record Number: <?php echo htmlencode($detailRecord['num']) ?><br/>
Name: <?php echo htmlencode($detailRecord['name']) ?><br/>
Price: <?php echo htmlencode($detailRecord['price']) ?><br/>
Product ID/SKU: <?php echo htmlencode($detailRecord['product_id_sku']) ?><br/>

Description: <?php echo $detailRecord['description']; ?><br/>
_link : <a href="<?php echo $detailRecord['_link'] ?>"><?php echo $detailRecord['_link'] ?></a><br/>


If you want to have a different picture for the thumbnail/header and main bike image. I would create three separate upload fields in the a2b_bikes section, and then display them all separately. Is this the option you went for?

Thanks!
Greg Thomas







PHP Programmer - interactivetools.com