Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2005, 02:47 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Repeat Region with a difference.

Hey there.

I want to create a dynamic repeat region - with a difference. I dont want a bland list going down the page, i want to style it like this:
www.angelxtreme.com/products.php. I want the products to go three across, and down as many as needed to display the records. I want the product title, main image and blurb displayed, all of which is called from a MySql db. The blurb is going to be a cut down version of the main description, so how will i go about restricting it to x characters?

Any ideas on how i can go about this?

Cheers
Fatmcgav
 
Old January 17th, 2005, 03:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this tutorial:

http://www.macromedia.com/support/ul...ernate_colors/

It shows you the basic idea behind irregular repeated regions. I think it's easiest to create a standard repeated region, and then add some code to tweak it so it repeats three items on a row.
What you need to use is the Mod operator, to count the number of records you have already display.

What language are you building this in?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old January 17th, 2005, 05:00 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

was plannin on doin it in php.

I'll have a lk at the link later.

Cheers
Fatmcgav






Similar Threads
Thread Thread Starter Forum Replies Last Post
Update form and Repeat Region malhyp Dreamweaver (all versions) 8 May 26th, 2006 03:18 PM
Sort a repeat region hendricksonet VBScript 0 August 11th, 2005 01:55 PM
hyperlink in repeat region recordset stephanvh Dreamweaver (all versions) 3 June 16th, 2005 01:05 PM
Region? JAtkinson Visual C++ 0 May 17th, 2004 07:02 AM
Repeat region, I cannot change the 'show records' karib Dreamweaver (all versions) 3 May 6th, 2004 03:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.