Quantcast
Viewing all articles
Browse latest Browse all 188

Providing a default value for an Entity Reference Field using Views Bulk Operations

I have a content type called 'Schools' and a CSV spreadsheet that has columns for information such as School Name, Location, Telephone etc...

Using Feeds I can import the information on the 111 Schools to individual pages.

Furthermore I have a field on the 'Schools' Content type that is an entity reference field to an entity (an entity form - that lets the user contact the school - of widget type 'Select list')

However when I import the school data with my feed the 'entity reference''select-list' field defaults to 'none' and the 'Contact form' does not display. Furthermore the entity reference field does not let me set a default value for the 'select list'.

I don't want to go through 111 schools to do this manually. While the previous question on this subject calls for some code...that I do not yet understand...

Therefore is there a way to essentially set a default value for my entity reference ... Perhaps 'Views Bulk Operations' is the answer?


Viewing all articles
Browse latest Browse all 188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>