Custom fields of modules

A custom field is a field that you create. For each content item there are default fields, such as author, title, etc. If you need to add different than the already existing fields, you must create a custom field, for example, price. A custom field is associated with the content type. For more information about custom fields and how to work with them in the backend, see Overview: Custom fields.

You can also create a new custom field using the Fluent API. The following example shows how to create a new custom field to the News module - the field is accessible for every news item:

The example uses the DynamicData facade. This facade provides methods for retrieving the field information. The DynamicData() facade provides methods for working both with a single field or a collection of fields.

This code creates a new ResearcherName column in the table related to the News module. This is done by Telerik OpenAccess ORM.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?