HighDots Forums  

dynamically create page layout

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss dynamically create page layout in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
-D-
 
Posts: n/a

Default dynamically create page layout - 07-18-2004 , 10:50 PM






Can anyone offer any suggestions on the following scenario. I want to query
a database field named "category". Based on the value contained in the
field "category", I want to have different page layouts created and
populated with the recordset fields.

So, as a very simple example. Say I have two different values for the
category field "cat" and "dog". When I query for "cat" the page would
dynamically build a two column two row layout. When I query for "dog" the
page would dynamically build a three column, three row layout. Something
like that. I am using ASP.

I'm interested in suggestions or better methods to accomplish this task.
Thanks for any input.

-D-



Reply With Quote
  #2  
Old   
Craig
 
Posts: n/a

Default Re: dynamically create page layout - 07-18-2004 , 11:50 PM






D,
presuming that this info is coming from the same recordset displayed on the
same page ....
a. a repeat region would probably be in order
b. the 'cat' has less columns (rows are repeat region controlled),
therefore a simple 'hide if empty' should hide the third column which only
applies to 'dog'
c. 'horizontal looper' extension might be good, plus a 'hide if empty'
one too

Craig



"-D-" <noone (AT) nospam (DOT) com> wrote

Quote:
Can anyone offer any suggestions on the following scenario. I want to
query
a database field named "category". Based on the value contained in the
field "category", I want to have different page layouts created and
populated with the recordset fields.

So, as a very simple example. Say I have two different values for the
category field "cat" and "dog". When I query for "cat" the page would
dynamically build a two column two row layout. When I query for "dog" the
page would dynamically build a three column, three row layout. Something
like that. I am using ASP.

I'm interested in suggestions or better methods to accomplish this task.
Thanks for any input.

-D-





Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.