drupal - collection field with status - publish checkbox

106 Views Asked by At

is there a way to have a publish checkbox on a collection field associated to a content type ?

if i have 3 items on a collection field associated to a node , one i want to set it unpublished so only 2 are displayed.

cars content type:
 -mercedes....
 -bmw.....
 -audi.... = unpublished

Thanks

1

There are 1 best solutions below

1
On

By default (through the UI) you can't do it.

You can do it programmatically by adding a check-box on your collection by using _form_alter() and add your own validation callback where you'll can modify referenced node accordingly.