Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2005, 02:47 PM
Registered User
 
Join Date: Jan 2005
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old January 17th, 2005, 03:46 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #3 (permalink)  
Old January 17th, 2005, 05:00 PM
Registered User
 
Join Date: Jan 2005
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:53 AM.


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