Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
View List Page in Columns

 

 


webfoot
User

Oct 12, 2009, 3:29 PM

Post #1 of 3 (1056 views)
Shortcut
View List Page in Columns Can't Post

Hello,

I have been reading and trying the various postings on columns for list page views but am getting soooo confused.

As you can see here a graphic of the store list page formatted into 3 columns:

http://www.infinitewell-being.com/mockup/

How do I get this into a table with 3 columns. I have copied and tweaked a post below of what I think it should be.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<table border="1">
<tr>
<?php foreach ($storeRecords as $record): ?>

<td>
/* ... display record here ...*/

<?php foreach ($record['product_picture'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

<?php else: ?>
<a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

<?php endif ?>
<?php endforeach ?>

<p> <?php echo $record['product_name'] ?></p><br/>
<?php echo $record['add_to_cart'] ?><br/>
<p> <a href="<?php echo $record['_link'] ?>">More information...</a></p>

</td>

<?php $maxCols=3; if (@++$count % $maxCols == 0): ?>
</tr>
<tr>
<?php endif; ?>
<?php endforeach ?>
</tr>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All help appreciated!

(This post was edited by webfoot on Oct 12, 2009, 3:34 PM)


webfoot
User

Oct 14, 2009, 9:31 AM

Post #2 of 3 (1043 views)
Shortcut
Re: [webfoot] View List Page in Columns- It Worked! [In reply to] Can't Post

OH! It worked - how about that. I should have tested before posting. Sorry about that. - M
melinda
webfootstudios.com


Donna
Staff


Oct 14, 2009, 1:00 PM

Post #3 of 3 (1036 views)
Shortcut
Re: [webfoot] View List Page in Columns- It Worked! [In reply to] Can't Post

Hi Melinda! Glad to hear that worked for you. :D

Donna

--
support@interactivetools.com