Link custom field

You use the Link custom field to set links in your site to make it easy for your audience to redirect to related content. It displays a link selector that allows you to insert links to existing pages or content items from Sitefinity CMS, enter an external link (URL) or email address, which you want to link the current item to. 
The Link custom field is available for both static and dynamic content types and can be single-select or multi-select type. 
When linking to a particular content type, Sitefinity CMS uses dynamic links, so that in case you move the News widget, for example, the link to the news item still redirects to the proper content.

To add a Link custom field, perform the following:

  1. Perform procedure Create custom fields » Step 1 to Step 5.
  2. In Type dropdown box, select Link.
  3. Enter a name for the field.
    The name of the field is different from its label. The field's name serves as a reference for that field in the backend. No spaces are allowed.
  4. In Interface widget for selecting items dropdown box, select Link selector.
  5. In Label field, enter a label of the link selector.
    This is a label of the interface widget for selecting items.
  6. (Optional) In Instructional text field, enter any instructional or explanatory text, or examples for the link selector field, if needed.
    The instructional text is displayed as a tooltip next to the field label in the backend.
  7. Select the This field is required checkbox, if you want to make the custom field mandatory.
  8. Select the Multiple links can be selected checkbox to enable content editors to insert links of multi-select type.
    Note that when the checkbox is not selected, this limits the link selection to a single-select type.
  9. Click Done.
    The new field appears in the Custom fields section.
    If you want to delete a custom field, click .
  10. Save your changes.
  11. For MVC widgets: When using MVC widget templates, you need to implement a front-end rendering for this custom field to override the interface widget for this type of field.

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?

Next article

Number custom field