Install and upgrade resource packages
Sitefinity CMS comes with Bootstrap resource package, installed out-of-the-box and added to your project. For more information, see Resource packages.
You upgrade the Bootstrap resource package in one of the following ways:
-
Via the NuGet repository
You do this by installingTelerik.Sitefinity.Feather. For more information see Nuget.org. -
Via the GitHub repository
Sitefinity CMS packages are open source. You can find the source files in the GitHub repository. To get the latest packages versions, clone or download the repository and replace theResourcePackagesfolder.NOTE: In case you are working with the Minimal package, you can only upgrade it via the GitHub repository.
IMPORTANT: In case you modified the default widget templates in the Bootstrap package, make sure you backup your
ResourcePackagesfolder before upgrading the Bootstrap package from either NuGet or GitHub.
Following are a few upgrade best practices when upgrading your resource package:
- Before starting the upgrade procedure, make a copy of your package to another location
- After completing the upgrade procedure, merge all conflicts:
- If you using a source control, merge the changes using the source control
- If you are not using a source control, merge the changes from the copy of your package to the upgraded package manually
Use a custom frontend framework
You can also use your own frontend framework, different than Bootstrap.
You do this using the Minimal package, which contains all default widget templates, npm package manager, basic CSS, and frontend assets. You can get the package from the GitHub repository.
NOTE: You can rename the Minimal package, for example, with the name of the framework you are using.
Get the source of your preferred CSS framework and include it in the Minimal package. You can add the CSS framework styles through npm or download the styles from the vendor website and manually include them in your package.
The example below demonstrates how to use a custom frontend framework by getting it via npm:
-
Add the framework
npmpackage as a dependency in the package.JSONfile.
After runningnpm install,npminstalls the framework in thenode_modulesfolder of the Minimal package. -
Open the
main.scssfile, located in the~/ResourcePackages/Minimal/assets/src/project/sassfolder.
Import the frameworkSCSSfile(s) from thenode_modulesfolder.NOTE: You can take a look at how the Bootstrap framework is imported in the
main.scssfile of the Bootstrap package in the GitHub repository. -
Run
npmto compile theSCSSfiles to onemain.cssfile and its minified versionmain.min.css. Bothmainfiles are generated in the~/ResourcePackages/Minimal/assets/distfolder of your package.
As a result, themain.min.cssfile is referenced in the layout file of the package, located in the~/ResourcePackages/Minimal/MVC/Views/Layoutsfolder. Thus, themain.min.cssfile is loaded on all pages and page templates that use this package.