- Create Blogs and Posts (Comments) in Sitefinity
- Kentico Hierarchical Transformation Layout
- How to assign global permissions to a user or role using permissions service in Sitefinity
- How to Create a Widget Designer using Thunder in Sitefinity
- How to Create Custom widget in Sitefinity
- How to Create Custom widget using MVC Feather in Sitefinity
- How to Create Forms in Sitefinity
- How to Create Product types in E-commerce and its fields in Sitefinity
- How to Create Search index in Sitefinity
- How to Create Template and how to use it in Sitefinity
- How to implement Dynamic data retrieving in Sitefinity
- How to use Module Builder in Sitefinity
- IIS express configuration to host websites
- Unigrid
- UniPager
- UniSelector
- Making Responsive compatible on IE7/IE8 using response.js
- Client Side Compatibility issues on Macintosh
How to Create Custom widget using MVC Feather in Sitefinity
MVC is an alternative to the conventional Web Forms in ASP.NET for creating web applications. MVC is an architectural pattern, which segregates an application into three elements that include the "view" the "controller" and the "model". These three elements symbolize the user interface logic, the input logic and the business logic, correspondingly.
To create a custom widget using the MVC feather, follow these steps:
Step 1: Open your project in Visual Studio
Step 2: Right click on Solution
Add > new project > click on windows > select class library
Give a name and add it.
Step 3: In that class library create an mvc folder
in mvc folder add model, view and controller folders
in the view folder add one more folder
Step 4: Right click on your class library and click on properties
Open assembly.info and insert below code using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes;
[assembly:ControllerContainer]
Step 5: Add custom model, view, controller
Step 6: Build your solution
This widget is automatically registered in the toolbox, you can use anywhere in your project
To create a custom widget using the MVC feather, follow these steps:
Step 1: Open your project in Visual Studio
Step 2: Right click on Solution
Add > new project > click on windows > select class library
Give a name and add it.
Step 3: In that class library create an mvc folder
in mvc folder add model, view and controller folders
in the view folder add one more folder
Step 4: Right click on your class library and click on properties
Open assembly.info and insert below code using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes;
[assembly:ControllerContainer]
Step 5: Add custom model, view, controller
Step 6: Build your solution
This widget is automatically registered in the toolbox, you can use anywhere in your project