Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

columns & search_results pages

Featured Replies

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

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. shocked.gif" border="0

Rgds, Partha

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>

  • Author

THANK YOU! the javascript worked like a charm. I owe you a beer.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.