Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to configure how reference field values resolves to file paths #235

Open
stefanprobst opened this issue May 29, 2022 · 0 comments
Open

Comments

@stefanprobst
Copy link
Contributor

currently, reference fields expect a path to another document file, relative to contentDirPath. it would be great if we could configure how a reference field value resolves to the relative file path.

in my case, i am using "Netlify CMS", which also has a similar concept of relation fields (and saves to markdown/yaml). however, it will only save the slug as field value, and use the folder and extension of a collection to construct file paths. e.g. it will save "my-tag" as relation field value, to reference a document in "tags/my-tag.yml" (when the tags collection has folder: "tags", extension: "yml" configured)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants