You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice if the configuration for Min Relations / Max Relations / Sources of the Entries field would be available when adding a field to an Entry type and have it's own configuration.
Right now it is possible to do it in code using the EVENT_DEFINE_RULES, get the fields of the entry, loop through them to find the correct field to edit and then correctly set the properties.
What this would allow, it to reduce the amount of fields required to select entries. Let's say I have an Article entry type and an Event entry type. In both of these entries I want to manually select other entries, but I want them to be only of the current entry type. If using the interface only, I can't do it with a single field. I have to create one field for the article and one field for the event.
Using code, I could create an entry field and programmatically restrict the sources per entry type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
It would be really nice if the configuration for Min Relations / Max Relations / Sources of the Entries field would be available when adding a field to an Entry type and have it's own configuration.
Right now it is possible to do it in code using the EVENT_DEFINE_RULES, get the fields of the entry, loop through them to find the correct field to edit and then correctly set the properties.
What this would allow, it to reduce the amount of fields required to select entries. Let's say I have an Article entry type and an Event entry type. In both of these entries I want to manually select other entries, but I want them to be only of the current entry type. If using the interface only, I can't do it with a single field. I have to create one field for the article and one field for the event.
Using code, I could create an entry field and programmatically restrict the sources per entry type.
Beta Was this translation helpful? Give feedback.
All reactions