HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Advice on catalogues

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#93418 (In Topic #18679)
Avatar

Fan in action

Height control of entires


Looking for some advice re height control of entries in a table catalogue - where is that done?

Suppose we have 3 fields : Name, Image and description, then -

Looks like the size of the thumbnail image will determine the height - except if the paragraph description is longer.

How do I NOT display the end of the long paragraph - so all enrties are the same height ?

Nick
Back to the top
 
Posted
Rating:
#93530
Avatar

Community saint

This could be done several ways. With CSS and/or Tempcode being your primary choices. I am not home with my system to look at stuff to direct you properly but with CSS you should be able to solve with something like an overflow: hidden to the description container. With Tempcode it would probably be slightly more complex but also more efficient but the guides in the learning section I think do cover this sort of thing.
Back to the top
 
Posted
Rating:
#95278
Avatar

Fan in action

I just deleted my last post here - it was idiotic.

At the risk of the same mistake .....​


CATALOGUE_DEFAULT_FIELDMAP_ENRTY_WRAP
<div class="wide_table_wrap"><table summary="{!MAP_TABLE}" class="wide_table results_table spaced_table">
<tbody>
<tr>
<td>{FIELD_1}</td>
<td>{FIELD_2}</td>
</tr>
<tr>
<td>{FIELD_0}</td>
<td>{FIELD_3}</td>
</tr>
</tbody>
</table></div>
 etc. rest of this template unchanged.

CATALOGUE_DEFAULT_FIELDMAP_ENRTY_FIELD

{+START,IF_NON_EMPTY,{VALUE}}
<tr>
<td>{VALUE}</td>
</tr>
{+END}

The result should look like this - and the goto button works!


 


Last edit: by Nick
Back to the top
 
There are too many online users to list.
Control functions:
 Add topic 

Quick reply   Contract

Your name:
Your message: