Zenoah Posted September 26, 2005 Posted September 26, 2005 Hi all, Is it possible in FM6 using CDML to create a HTML results page that goes across the page as well as down. So example would be :- ----------------------------- record1 | record2 | record3 ----------------------------- record4 | record5 | record6 ----------------------------- etc, etc. Just listing the records one after the other in a list is easy, just wanted to know if I could achieve the above as an alternative. Many thanks, Zenoah
Garry Claridge Posted September 26, 2005 Posted September 26, 2005 Try something like this: [FMP-Record] if ((i % nCols) == 0) { document.write("[FMP-Field:myfield] } else { document.write("[FMP-Field:myfield]"); }; i++ ;[/FMP-Record] All the best. Garry
Zenoah Posted September 27, 2005 Author Posted September 27, 2005 Thanks for that. So I'm guessing there's no way of doing the equivalent in pure CDML? Wanted to stay clear of scripting tbo as the above for example doesnt let you design the table 'visually' in Frontpage.
Garry Claridge Posted September 27, 2005 Posted September 27, 2005 Some people have created Calculation fields that use the CurrentRecordNumber in conjunction with [FMP-IF] tags. Do a search on "columns" in the CDML forum. Good Luck. Garry
Jane in AZ Posted October 3, 2005 Posted October 3, 2005 Garry, I copied your javascript, but I have no javascript understanding. What needs to be changed to change the number of columns?
Garry Claridge Posted October 4, 2005 Posted October 4, 2005 Change this line: For example for three columns: All the best. Garry
Recommended Posts
This topic is 6981 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now