Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to set a content type's default value from another content type. I am sure this would work with rules but I need the value to be set before the user creates the content type.
The field is a file.
I would also like to be able to use a rules like condition for example to update the value of one content type from another content type that is tagged with a certain term or flag.
I have searched around a lot and have not been able to find a way to do this. Any suggestions are appreciated.
Comments
Comment #1
swentel CreditAttribution: swentel commentedSince you're talking a lot about rules, it might make more sense to check that queue
Comment #2
eminencehealthcare CreditAttribution: eminencehealthcare commentedI dont think rules can fill files on a node add page, it seems like my only choices are before saving content and after saving content. There is when content is viewed but when adding a node it is not content yet.
Comment #3
TR CreditAttribution: TR commentedIf you really mean "content type", as in you want to set default values for the content type itself and not just for nodes of that content type, then the answer is you will have to do this through core Drupal hooks, not Rules. Rules does not provide a way to manipulate the content type definition.