September 26, 200520 yr 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
September 26, 200520 yr 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
September 27, 200520 yr Author 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.
September 27, 200520 yr 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
October 3, 200520 yr Garry, I copied your javascript, but I have no javascript understanding. What needs to be changed to change the number of columns?
Create an account or sign in to comment