I am trying to display a repeat region from left to right on
my page, I am designing a site for a shoe company and need to
display all their different thumbs for each article they sell, the
images are coming from a db but I can only make the repeat region
display across the page, this obviously means that left to right
you only get one shoe, so that the lay out looks neat i need to
display at least 3 from left to right, I don't mind if I have to
use a table or div but just can't figure it out, someone please
help.Plaese help, i'm going crazy
when switching Dreamweaver to Code View for this page, does
this repeat region possibly add a line break (%26lt;br /%26gt;) after
each image ? if yes, you麓d simply need to replace this with
e.g. a separator to get your images displayed
horizontallyPlaese help, i'm going crazy
We have to guess how your code looks now - can you show us?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials %26amp; Resources
http://www.dwfaq.com - DW FAQs,
Tutorials %26amp; Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
''TheBOSMAN'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:eubuna$6vh$1@forums.macromedia.com...
%26gt;I am trying to display a repeat region from left to right
on my page, I am
%26gt; designing a site for a shoe company and need to display
all their
%26gt; different
%26gt; thumbs for each article they sell, the images are coming
from a db but I
%26gt; can
%26gt; only make the repeat region display across the page,
this obviously means
%26gt; that
%26gt; left to right you only get one shoe, so that the lay out
looks neat i need
%26gt; to
%26gt; display at least 3 from left to right, I don't mind if I
have to use a
%26gt; table or
%26gt; div but just can't figure it out, someone please help.
%26gt;
I don't have any code, Sorry but I really am
struggling.
%26gt;I don't have any code,
Of course you do. That's what you're struggling with.
%26gt;Sorry but I really am struggling.
So are we without seeing your code.
--
Regards
John Waller
ok, but when having this page containing the repeat region
loaded in Dreamweaver, you sure should see ''something different''
when clicking on the ''Code'' button located above the page ?
you should actually see some ''code'' then, and you麓d
simply need to copy all that you麓re seeing now and paste it to
your next reply.
Here you go
%26lt;%
While ((Repeat1__numRows %26lt;%26gt; 0) AND (NOT
rs_Products.EOF))
%%26gt;
%26lt;td%26gt;%26lt;p align=''center''%26gt;%26lt;img
src=''%26lt;%=(rs_Products.Fields.Item(''Colour1Thumb1'').Value)%%26gt;''%26gt;%26lt;br%26gt;
%26lt;%=(rs_Products.Fields.Item(''Description'').Value)%%26gt;%26lt;br%26gt;
%26lt;%=(rs_Products.Fields.Item(''Price'').Value)%%26gt;%26lt;/p%26gt;
%26lt;/td%26gt;
%26lt;%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs_Products.MoveNext()
Wend
%%26gt;
Just as geschenk said -
%26lt;%
While ((Repeat1__numRows %26lt;%26gt; 0) AND (NOT
rs_Products.EOF))
%%26gt;
%26lt;td%26gt;%26lt;p align=''center''%26gt;%26lt;img
src=''%26lt;%=(rs_Products.Fields.Item(''Colour1Thumb1'').Value)%%26gt;''%26gt;
%26lt;%=(rs_Products.Fields.Item(''Description'').Value)%%26gt;
%26lt;%=(rs_Products.Fields.Item(''Price'').Value)%%26gt;%26lt;/p%26gt;%26lt;/td%26gt;
%26lt;%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs_Products.MoveNext()
Wend
%%26gt;
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials %26amp; Resources
http://www.dwfaq.com - DW FAQs,
Tutorials %26amp; Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
''TheBOSMAN'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:euc23s$b4k$1@forums.macromedia.com...
%26gt; Here you go
%26gt;
%26gt; %26lt;%
%26gt; While ((Repeat1__numRows %26lt;%26gt; 0) AND (NOT
rs_Products.EOF))
%26gt; %%26gt;
%26gt; %26lt;td%26gt;%26lt;p align=''center''%26gt;%26lt;img
%26gt;
src=''%26lt;%=(rs_Products.Fields.Item(''Colour1Thumb1'').Value)%%26gt;''%26gt;%26lt;br%26gt;
%26gt;
%26lt;%=(rs_Products.Fields.Item(''Description'').Value)%%26gt;%26lt;br%26gt;
%26gt;
%26lt;%=(rs_Products.Fields.Item(''Price'').Value)%%26gt;%26lt;/p%26gt;
%26gt; %26lt;/td%26gt;
%26gt; %26lt;%
%26gt; Repeat1__index=Repeat1__index+1
%26gt; Repeat1__numRows=Repeat1__numRows-1
%26gt; rs_Products.MoveNext()
%26gt; Wend
%26gt; %%26gt;
%26gt;
I don;t know how but it is now going across the page from
left to right, only problem is that after three it isn't Page
breaking to the next level down???????????
Uhh - impossible with the code you showed....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials %26amp; Resources
http://www.dwfaq.com - DW FAQs,
Tutorials %26amp; Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
''TheBOSMAN'' %26lt;webforumsuser@macromedia.com%26gt; wrote in
message
news:euc2eu$bkb$1@forums.macromedia.com...
%26gt;I don;t know how but it is now going across the page from
left to right,
%26gt;only problem is that after three it isn't Page breaking
to the next level
%26gt;down???????????
%26gt;%26gt;
%26lt;td%26gt;%26lt;p align=''center''%26gt;%26lt;img
src=''%26lt;%=(rs_Products.Fields.Item(''Colour1Thumb1'').Value)%%26gt;''%26gt;%26lt;br%26gt;
%26lt;%=(rs_Products.Fields.Item(''Description'').Value)%%26gt;%26lt;br%26gt;
%26lt;%=(rs_Products.Fields.Item(''Price'').Value)%%26gt;%26lt;/p%26gt;%26lt;/td%26gt;
%26gt;%26gt;
thanks, that麓s the clue we need ! My initial assumption
was right: all your fields are getting separated by a line break
(%26lt;br%26gt;), what makes them all appear vertically -- but as you
have more than just the image field, it麓s time to consider how
all of that should be displayed to your mind. One option were to
restructure all this information within an ''inner table'', that is,
another table with just one row, that麓s containing...
1. a cell to the left that麓s displaying the image only
2. another cell to the right that麓s displaying the
description on top and the price below.
If this suggestion makes sense to you, it麓s easy to
provide a complete code
Sounds good, i'd rather have Image on top then description
below and the price below that but if your code is already wrote
then I will try and adapt it, either way I would really appreciate
the code. Does this compensate for my last post ie breaking after a
set amount of products?
%26gt;%26gt;
Sounds good, i'd rather have Image on top then description
below and the price below that
%26gt;%26gt;
please forgive me, but isn麓t this the result you already
got with your original code containg the %26lt;br%26gt;麓s ? If
that麓s your preferred solution anyway, I don麓t see any
sense in suggesting something else ;-)
No, Currently I get the following Image
Description
Price
Image
Description
Price
and what I need is
Image Image Image
Description Description Description
Price Price Price
Image Image Image
Description Description Description
Price Price Price
Image Image Image
Description Description Description
Price Price Price
Hope this helps.
Cheers Karl.
That hasn't came out the way it looked when I typed it, if it
isn't clear do you have an email address I can send an image
to?
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment