Jump to content

columns & search_results pages


This topic is 8420 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

This topic is 8420 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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