Including images in the links

Created on 26 November 2022, over 1 year ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

This is a superb module. Thank you!

In my current use case, the previous/next link needs to include an image from a field in the node. I can't see a way to do this.

Is there a way to include an image field, or, have the node's teaser as the output for the links?

Proposed resolution

A. Option to include additional fields in the output so we can use them in the entity-pager.html.twig template.

B. Option to use the node's teaser (or other view mode) output as the link.

Thanks!

Farez

✨ Feature request
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom farez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom Juc1

    > You can try using row replacement patterns in the next/previous link configuration.

    I can confirm that this works using tokens in Format Settings, for example:

    Next ><p><img src="[node:field_podcast_image:thumbnail]"><p>[node:title]

Production build 0.69.0 2024