Bug 13110

Summary: News needs a Read More option
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: ToolsAssignee: Galen Charlton <gmcharlt>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: veron
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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