Random glossary on front page with fixed height

Random glossary on front page with fixed height

Fredrik Pedersen-Dambo -
回帖数:8

Hi, is it possible to use random glossary on right and left columns on front page with a fixed height? Maybe with only showing a few lines of text with at read more link?

回复Fredrik Pedersen-Dambo

Re: Random glossary on front page with fixed height

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像
It would be a very good idea. Why don't you submit this as an IMPROVEMENT in the Moodle bug tracker?
Joseph
回复Joseph Rézeau

Re: Random glossary on front page with fixed height

Fredrik Pedersen-Dambo -

Thanks. I have now submitted it to the bug tracker.
Fredrik

回复Fredrik Pedersen-Dambo

Re: Random glossary on front page with fixed height

Sigurdur Jonsson -

Do you know if there has been any progress on this?

回复Sigurdur Jonsson

Re: Random glossary on front page with fixed height

Frank Ralf -
Meanwhile you could try hacking the CSS a bit, which admittedly is far from perfect:

div.block_glossary_random div.content {
height: 20em;
overflow: scroll;
}

See screenshot for the result and http://reference.sitepoint.com/css/overflow for more information on using "overflow".

hth
Frank
附件 Random_glossary_block_overflow.png
回复Frank Ralf

Re: Random glossary on front page with fixed height

Joe Rowe -
I'd like to apply the fix suggested by Frank above ( CSS, overflow)

Where is the file I can edit and apply the fix?
回复Joe Rowe

Re: Random glossary on front page with fixed height

Joseph Rézeau -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像
@Joe
Simply add the CSS rule suggested by Ralf at the end of any of the CSS files in your current moodle theme.
Joseph