Add resources to your application

Using CSS styling, JavaScript logic, and jQuery support is a part of the process of developing your custom Sitefinity CMS features. Thus, your custom functionality is styled and presented according to your requirements.

For more information about the complete set of features, see Sitefinity Features & Capabilities.

You can add JavaScript, CSS, and Sitefinity’s built-in jQuery resources. Depending on what resource you want to add, what you want to style, and where to apply styles, you can add resources to a widget, page, or to a master template.

You include the CSS resources and the JavaScript resources in your implementation's markup and code-behind, respectively. You can include CSS and JavaScript resources to the implementation of both custom and user widgets.

You can either:

  • Add resources to your Sitefinity CMS project - resources (scripts or styling) apply only to the current project
  • Add resources to an external class library - you can reuse the resources (scripts or styling) in different projects or applications
    NOTE: If you add resources to the external library, you must add them as embedded resources, otherwise you cannot reference them from other Sitefinity CMS projects.

When you add the scripts as embedded resources, they are always combined automatically in a single file along with Sitefinity's default resources (files, CSS, and scripts) and you can easily download and use them together.

When you add resources as as content items, they are loaded as a separate file in the browser.

You can link embed resources to a widget using the ResourceLinks widget. For more information, see Utility widgets: ResourceLinks widget.

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?