Reputation: 20362
I have two models file
and filecontainer
.
Let's assume I have a checkbox in file
called Allow to add
.
And I should only be able to add the file to the container of filecontainer
, if the property Allow to add
is set in that file and if possible show an alert if someone tries to add it even though Allow to add
is not set.
Filecontainer
Is this possible?
PS: I just ask this question for learning purposes to see what is possible and what not.
Upvotes: 0
Views: 54
Reputation: 563
I assume you use the TCA type select
. You can specify a foreign_table_where
clause there to filter the records shown from the file
table.
Upvotes: 1