Skip to content

Handle file links as file references - #2517

Merged
tf merged 10 commits into
codevise:masterfrom
tf:download-link-refs
Oct 21, 2026
Merged

tf merged 10 commits into
codevise:masterfrom
tf:download-link-refs

Conversation

@tf

@tf tf commented Oct 21, 2026

Copy link
Copy Markdown
Member

No description provided.

tf added 10 commits October 21, 2026 14:49
Treat files linked from text and link buttons as referenced, so the
usage counts shown when selecting files for bulk deletion include
downloads the entry still needs. Include these links in
reference-based file rights as well.
Determine which files active references in the configurations of an
entry point at, including nested files like text tracks, so the
published seed can mark referenced files without shipping reference
locations and the walking algorithm.
Render an isReferenced flag for files in the seed of published
entries when file rights are derived from references. Only take
sections and content elements into account that the seed contains,
so hidden and cut off sections do not contribute.
Maintain an index of file references that only rescans the section or
content element whose configuration changed. Mark files with an
is_referenced attribute and sync it to the preview's entry state, so
the preview can tell referenced files apart without walking all
configurations on every change. Serve configuration places from the
same index.
Let file rights rely on the isReferenced flag provided by the published
seed and the editor instead of walking all configurations in the
frontend. Only render file reference locations in the editor's seed,
since published entries no longer need them. Look up locations of
content element types on demand instead of limiting them to the types
an entry uses.
The entry schema used the camel cased name of entry state, since file
references used to be collected from entry state items. Now that the
editor and the server read the entry directly, use the attribute name
both of them see.
Name links in tooltip texts and tooltip links as places of file
references and activate the area that holds them on select, so editors
can find downloads they are about to delete.
Name links in captions of gallery items as places of file references
and switch the gallery to the item that holds them on select.
Name links in item texts and item links of external link lists as
places of file references and select the item that holds them on
select.
Name links in text blocks by their text as places of file references
and select the block that holds them on select.
@tf tf added this to the v17.3 milestone Oct 21, 2026
@tf
tf merged commit bf61ea2 into codevise:master Oct 21, 2026
18 checks passed
@tf
tf deleted the download-link-refs branch October 21, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant