Problem/Motivation

The short answers in FAQ aggregations always shows a "Read complete answer" link, even when this Synopsis view mode contains everything.

The reason was that the Smart trim formatter only works with the given field (body) and is unaware of paragraphs added to that node.

Proposed resolution

  • Configure the synopsis display to render a label for the paragraphs field
  • Rewrite that label in the template to render a link to the node
  • For the time being, use CSS to hide any duplicate link (i.e. when body is smart-trimmed and the node contains paragraphs)

Follow-up

This solution might inflict an accessibility flaw, depending on the assistive technology. Lets conduct some tests with the above solution and then decide how to robustly handle redundant links.

Comments

hexabinaer created an issue. See original summary.

tobiasb’s picture

Assigned: hexabinaer » tobiasb
Category: Task » Bug report

  • tobiasb committed 4c244aea on 2.6.x
    fix: #3579130 Only render read-more link in FAQ synopsis when there is...

  • tobiasb committed 4c244aea on 3.0.x
    fix: #3579130 Only render read-more link in FAQ synopsis when there is...
tobiasb’s picture

Assigned: tobiasb » Unassigned
Status: Active » Fixed

Done.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.