Skip to content

Commit 5f12d19

Browse files
fix: exclude research-spotlight dir from generic content collection (closes #113)
The 80 spotlight MDX files under content/content/reactome-research-spotlight also matched the parent 'content' collection (path content/content), yielding ~2880 "file in multiple collections" warnings every startup and two conflicting edit schemas in the TinaCMS sidebar: one with description/image (Content) and one with date/author/tags (Spotlights). The frontmatter on disk uses date/tags, so the Spotlights collection is the correct owner. Add a match.exclude pattern (mirroring the existing news/** exclude on the 'about' collection) so spotlight files belong to Spotlights only. The Content sidebar entry now lists just the three real /content/*.mdx pages (covid-19, index, orcid); spotlights remain editable under the "Reactome Research Spotlights" sidebar entry. No routing or on-disk changes; this is purely a CMS-side disambiguation. Verified post-restart: warning count drops from ~2880 to 0, both collections still in the generated schema, beta + admin both return 200.
1 parent 8e99605 commit 5f12d19

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

projects/website-angular/tina/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export default defineConfig({
5858
label: "Content",
5959
path: "content/content",
6060
format: "mdx",
61+
match: {
62+
exclude: "reactome-research-spotlight/**",
63+
},
6164
fields: [
6265
{ type: "string", name: "title", label: "Title", isTitle: true, required: true },
6366
{ type: 'string', name: "description", label: "Description" },

projects/website-angular/tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)