July 6, 200124 yr Is it possible to return a search_results page that puts results in 2 or more columns? I am trying to get as many results as possible to show at once to minimize scrolling in a touch screen kiosk. As always, any input would be much appreciated. Brian
July 6, 200124 yr There is a way, but it'll require a fairly big work-around. You'd need to make a dummy file that contains two fields with, say, values '1' & '2', as well as two calc fields that contain your search value + 1 and another with 2 You make a layout in this file with portals linked to the file you would like results from based on a relationship with the Calc values. In the file that you would have originally searched from, you create a 'parsed calculation' field that contains the values + its sequence in the CurrentFoundCount that gives it the extra value of '1' or '2' This, however, has a big drawback. You would either need to make a fairly large 'parsed calculation' field if you want to give your users the freedom of searching by any combination of characters, OR You would have to limit them to specific searches available in a popup. Hope this makes sense. Rgds, Partha
July 6, 200124 yr the easy way uses a bit of javascript in your CDML. The following code will display the data field (I used 'name') in 2 columns. You can change the number of columns to whatever you want. <script language="javascript"> var columns = 1 </script> <table border="2" cellspacing="5" cellpadding="5"> <tr> [FMP-record] <td>[fmp-field: name]</td> <script language="javascript"> if (columns<2) { columns++ } else { document.write("</tr><tr>") columns = 1 } </script> [/FMP-record] </tr> </table>
Create an account or sign in to comment