Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi

When displaying the results of a search online using Lasso I want the results to appear three across and not singular with one record under another.

The code I am currently using is the standard:

[Records]

[Field: Name] [Field: Thumbnail Image of Record]

[/Records]

If I have 75 records it will therefore return 75 rows of results. What I want is 25 rows of results with 3 results in each row.

How do I set the html page/table to effect this flow across 3 columns?

Any advise will be greatly appreciated! confused.gif

Posted

If you were using just CDML you would do this with some Javascript. However, I assume that Lasso may have some "tools" which enable you to this. (I don't know any Lasso.)

Does Lasso allow you to use variables? If so, can you increment them? For example, the logic would be like this:

<tr><td>Name</td>

[recs = 0]

[Records]

[if: (recs mod 3) eq 0]

</tr><tr><td>[Field: Name] [Field: Thumbnail Image of Record]</td>

[else]

<td>[Field: Name] [Field: Thumbnail Image of Record]</td>

[/if]

[recs = recs + 1]

[/Records]

Good Luck.

Garry

This topic is 7396 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.