anybody any idea how we could solve this problem: long titles tend to sahek up the whole design of the view.

So how could we achieve automatically truncated titles, something like:

StringTrimRight ($title, 20).' ...'

Comments

thomasmuirhead’s picture

Did you ever work this out?

I'd be very grateful to know how

dman’s picture

Have you considered CSS ?


.view .title{
 width:200px;
 white-space:nowrap;
 overflow:hidden;
}

or similar?
...code OTTOMH, so you'll need to tweak it yourself.

thomasmuirhead’s picture

StatusFileSize
new64.06 KB
new65.96 KB

Thank you for that...I'm fiddling away with

My problem is knowing how to refer to the individual fields displayed in the view. I'm in the CSS for the bonus grid view, and I'm now using:

table.view-grid {
align="center";
width: 100%;
table-layout: fixed;
white-space:nowrap;
overflow:hidden;
}

In firefox this makes the titles stick to one line (the nowrap) but tte overflow is still visible beneath the title next to it.
In IE7 this makes the thumbnail push up and the title take three lines.

I'd be quite happy for the title to take three lines (or as many lines as is needed by the title) but just not push the thumbnail up.

I'll attach the two screenshots:

thank you so much in advance...it's driving me mad.

dman’s picture

Looks like the problem isn't the thumbnail pushed up, it's the rest of the line slipped down.
Old-school table alignment :-)


td {
vertical-align:top
}
?>

thomasmuirhead’s picture

Thank you dman,

you've scratched a serious itch.

For those who get the same problem: go into your bonus_views module, find the views_bonus.css.

In there where it says: table.view-grid

replace that with:

table.view-grid {
align="center";
width: 100%;
table-layout: fixed;
}

td {
vertical-align:top;
}

and your table rows will look straight. Thank you dman

However, I still can't get the title to cut off after two lines, which would be ideal. I tried
tr {
height:120px;
overflow: hidden;
}

but that didn't work...

michellepurestock’s picture

Thank you thank you! I seriously love all of you! This solves many, many problems.

Thanks again!

www.purestock.tv

pomliane’s picture

Status: Active » Closed (won't fix)

This version of Views Bonus Pack is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.