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).' ...'
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | imageproblem1.gif | 65.96 KB | thomasmuirhead |
| #3 | imageproblem2.gif | 64.06 KB | thomasmuirhead |
Comments
Comment #1
thomasmuirhead commentedDid you ever work this out?
I'd be very grateful to know how
Comment #2
dman commentedHave you considered CSS ?
or similar?
...code OTTOMH, so you'll need to tweak it yourself.
Comment #3
thomasmuirhead commentedThank 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.
Comment #4
dman commentedLooks 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
}
?>
Comment #5
thomasmuirhead commentedThank 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...
Comment #6
michellepurestock commentedThank you thank you! I seriously love all of you! This solves many, many problems.
Thanks again!
www.purestock.tv
Comment #7
pomliane commentedThis 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.