Implementation

Each custom field is attached in the PageNode object as an artificial property (simple types like integer, Boolean, string) or as an association (complex types like classifications or related data). These properties are not available in compile time. They can be accessed in runtime using the Sitefinity CMS API. 

Database implementation

On database level, the custom fields are stored in sf_page_node table as additional columns. If you are using localizable string properties and Administration: Persist multilingual fields in separate tables for each language, the localized custom fields are stored in different tables. 

When you add a classification custom field to a page, the system creates an additional table of type sf_page_node _<classification>, for example, sf_page_node_tags

The following screenshot displays the database entries when you add a custom classification field of type tags, the field is named hint and has an English and Spanish translation:

custom fields for pages

Custom fields meta information, such as ColumnName, DBtype, and ClrType, is stored in table sf_meta_fields.

Supported field types 

All custom fields types are supported – Lstring (Short text, Long text), Numeric, Boolean, Classifications, Related Media, Related Data, Currency, and DateTime.

Field controls

In addition to the standard Overview: Field controls, as of Sitefinity CMS 7.0 the RelatedMediaField and RelatedDataField have been added and made publicly available.
For more information, see Content relations: Related data.

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?