Create custom fields

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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?