Follow

Integrating Drupal Field Types With Custom Fields in Kapost

This article is a deep dive into the "set your configuration parameters" step in the Developers's Drupal Integration Article.

If you would like to learn more about Custom Fields and how to create them, read this article here.  To create a custom field in Kapost, you will need to choose a name, a field name, a field type, and if applicable, field values.

All of these elements in Kapost have corresponding elements in Drupal field types.  To give you an overview, the custom field name in Kapost corresponds to the label in Drupal, the field name in Kapost corresponds to the machine name in Drupal, and the field type in Kapost corresponds to the field type in Drupal.  (Note: The name in Kapost can actually be anything - the field name, however, MUST match the machine name).

To see your Drupal field types, go to Structure -> Content Types, then choose "manage fields" on the Content Type whose fields you would like to view.  Your table should look like the image below - let's pretend I need to recreate the "Image" field type as a custom field in Kapost.

As you can see on the table above, the Label is "Image", the Machine Name is "field_image", and the field type is "image." This is what this field would look like as a custom field in Kapost: 

As a note, we support the following 

You now need to associate your custom fields with the appropriate Kapost content type.

When you connect your Drupal content types in Kapost, each content type needs to be connected separately.  You can read more about that here.  A best practice is to create a separate content type in Kapost for each Drupal connection/content type, and associate the custom fields you've made with the corresponding content type.

If you have any questions or feedback, please contact us at support@kapost.com.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments