|
Date: 4/8/2008 3:11 pm · Subject: Dataform Data List Templating · Rating: 0
Hey, I hope someone can give me some insight.
Long Explanation ----------------------------------------
I'm working on altering the data list template for the dataform so that it checks to see what type of data it is and then attaches a specific class.
For instance: If I have a DataForm with 3 tabs and 8 fields for each tab, some date fields, others text areas and some check boxes the default template for the data list is going to be a mess.
In that scenario the table gives equal weight to all cells so that I have 24 equally divided columns regardless of content.
What i want is too check to see if this field is a time stamp or a textarea and then give it the appropriate class so that my textarea data gets more width than say my yes/no checkbox input.
Two questions ----------------------------------------
1) I see this in the help but can't seem to make proper use of it. Can anyone instruct me?:
record_data_type The data type associated with this field. 2) I've had discussions about templating on this board before and I feel like there have been allusions to a 1-to-1 correlation between template loops and database fields. Can any one offer any help on decoding the relationship between template loops and database fields? If anyone can give me a good start I'll do my best to get it into the wiki.
--- (Edited on 4/8/2008 3:11 pm [GMT-0500] by philadev) ---
|