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)

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

Hi,

Would it be possible for you to attach or copy and paste your code for a2b_bikes.php into a post so I can see how you currently have your page and sections set up?

Thanks!

Greg
Greg Thomas







PHP Programmer - interactivetools.com

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