Bug 13110 - News needs a Read More option
Summary: News needs a Read More option
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-17 21:01 UTC by Christopher Brannon
Modified: 2014-10-21 06:58 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Brannon 2014-10-17 21:01:22 UTC
It would be great if News allowed the insertion of a READ MORE tag/link so that if you have a lengthy article, it doesn't have to take up a lot of room on the Koha main page or in the main page of the OPAC.

Christopher
Comment 1 Marc Véron 2014-10-20 21:16:02 UTC
Hi Christopher,

Maybe you could collaps / expand the articles using CSS.

I played around with OPACUserCSS on current master (3.17.00.029) and found the following as a first draft:

#news .newsitem {
 max-height: 40px !important;
 overflow:hidden;
 transition: max-height 10s ease-in;
}

#news .newsitem:hover {
 max-height: 500px !important;
 transition: max-height 5s ease-out;
}
Comment 2 Christopher Brannon 2014-10-20 21:57:36 UTC
Marc,
Nice work around.  I had to change to:

.newsitem {
 max-height: 40px !important;
 overflow:hidden;
 transition: max-height 10s ease-in;
}

.newsitem:hover {
 max-height: 500px !important;
 transition: max-height 5s ease-out;
}

The #news ID doesn't work because the articles are numerated like "news32"

Christopher
Comment 3 Marc Véron 2014-10-21 06:58:04 UTC
(In reply to Christopher Brannon from comment #2)
> The #news ID doesn't work because the articles are numerated like "news32"

I'm glad that it works.

Which Koha version are you using? - The display of news is changed by Bug 12863 (Pushed to master).


Marc