Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Content populated in entries field should respect source/section setting #23

Open
magnusskogen opened this issue Dec 9, 2020 · 5 comments

Comments

@magnusskogen
Copy link

If I limit an entries field to a specific source (say "News"), Seeder does not respect this setting — it adds entries from all sections. Only tested this inside a Matrix, not sure if that has anything to do with it.

@janhenckens
Copy link
Member

@magnusskogen could you post the full command you're using? Thanks!

@magnusskogen
Copy link
Author

Sure! You mean this?

./craft seeder/generate/entries --section=project --count=10

@janhenckens
Copy link
Member

Yes! So your section handle would be project in this case?

@magnusskogen
Copy link
Author

Yes! Just to clarify my specific case: I have a Matrix, where one of the fields is an entries-field where the user can only select entries from the section "News". Seeder adds entries from all sections, not only "News".

@Bcdo
Copy link

Bcdo commented Feb 12, 2021

To clarify further. If you have an entries field in general, that restrics what you can choose to relate with, it will disregard this restriction. So if your entries field has the restriction of only choosing entries to relate to in the channel of "news", the seeding will still be able to choose of all the other sections that are created, not only the entries in the "news" section.

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

No branches or pull requests

3 participants