You use widget templates to change the appearance of the widget in Sitefinity CMS. Every widget has built-in templates that are packaged in the same assembly.
The following procedure describes how to change the built-in widget template depending on the view engine you are using.
By default, all MVC-oriented logic must reside in folder Mvc folder in the SitefinityWebApp project. This folder is created automatically by Sitefinity CMS in your web application. Once you install the Feather project, the new MVC widgets appear in Sitefinity CMS toolbox.
To modify the default template of the ContentBlock widget that uses the RazorViewEngine, perform the following:
In Visual Studio, open your SitefinityWebApp project and click Mvc » Views.
Create a new folder and name it ContentBlock.
NOTE: The name of the folder must correspond to the name of the widget whose template you want to change. In case, for example, you need to change the template of the Navigation widget, you must name the folder Navigation.
IMPORTANT: You can use only alphanumeric characters and underscore.
As a result, the Testing new template text is displayed.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity