Project

General

Profile

Feature #8270

"more.." button for columns with long text

Added by Marc Egger about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02.05.2019
Due date:
23.05.2019
% Done:

0%

Estimated time:
Discuss:

Description

Current workaround:

  1. in report html:

<script type="text/javascript"> function toggle(moreButton) {if ($(moreButton).text() === 'more..') {$(moreButton).text("less..").siblings(".more-text").show();} else {$(moreButton).text("more..").siblings(".more-text").hide();} } </script>

  1. column selection in sql select

CONCAT, '</span> <a onClick="toggle(this)" class="more-button"> more..</a>')

Associated revisions

Revision e447e73f
Added by Carsten Rose about 1 year ago

Merge branch 'F8270moreButtonForColumnsWithLongText' into 'master'

F8270 more button for columns with long text AND add QBAR to for qfq | escape

See merge request typo3/qfq!144

History

#1 Updated by Marc Egger about 1 year ago

  • Due date set to 09.05.2019
  • Assignee set to Marc Egger

#2 Updated by Marc Egger about 1 year ago

  • Due date changed from 09.05.2019 to 23.05.2019

#3 Updated by Marc Egger about 1 year ago

Todo: backend implementiere:
Wenn ein Text zu lang ist wird <span class="qfq-more-text"></span> um den Teil des Textes gewrappt, der versteckt werden soll. Bsp.:

Ein Frosch der voller Ueberraschungen war. Ein<span class="qfq-more-text"> Frosch der voller Ueberraschungen war. Ein Frosch der voller Ueberraschungen war. Ein Frosch der voller Ueberraschungen war.</span>

Ergiebt:

Ein Frosch der voller Ueberraschungen war. Ein more..

#4 Updated by Marc Egger about 1 year ago

  • Variante HTML: im Text einfach das '<span...> Attribut setzen.
  • Varainte QFQ:
    SELECT 'some long many paragraph text' _more
    

t:some test
l:20

Marc Vorschlag: wiso nicht einfach in link klasse einen parameter "m" fuer more einbauen. also "langer text hier bla bla bla |m:10" as _link

#5 Updated by Carsten Rose about 1 year ago

  • Status changed from New to Closed
  • Target version set to 19.5.1

Also available in: Atom PDF