Skip to content

[6.x] Link Fieldtype API changes - #11375

Merged
jasonvarga merged 6 commits into
masterfrom
link-fieldtype-rest-api
Nov 5, 2025
Merged

jasonvarga merged 6 commits into
masterfrom
link-fieldtype-rest-api

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jan 21, 2025 •

Copy link
Copy Markdown
Member

Right now, the REST API returns the URLs of links configured using the Link fieldtype.

However, for entry links, there's no way to know any more information about the link, other than its URL. You could loop through and query each collection individually but that's certainly far from ideal.

In Antlers/Blade land, #8911 made it possible to get more "information" about a linked entry. However, that change was never reflected in the REST API, due to the fact it'd be a breaking change.

This PR follows-up and makes that breaking change so consumers of the REST API can get more context of linked entries without having to do a lot of work.

CleanShot 2025-01-21 at 18 08 28

@duncanmcclean duncanmcclean changed the title [6.x] Link Fieldtype: Provide more context for entry links [6.x] Link Fieldtype: Provide more context for entry links in the REST API Jan 22, 2025

@jasonvarga jasonvarga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's outputting too much. It should get shallow augmented the same way as you'd see if you used the entries fieldtype.

@jasonvarga jasonvarga changed the title [6.x] Link Fieldtype: Provide more context for entry links in the REST API [6.x] Link Fieldtype API changes Nov 5, 2025
@jasonvarga
jasonvarga merged commit ec976fc into master Nov 5, 2025
19 checks passed
@jasonvarga
jasonvarga deleted the link-fieldtype-rest-api branch November 5, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants