Posts

Showing posts from 2019

Custom Dropdown in Sitecore form

Image
Custom Dropdown in Sitecore form       1 .  Create a field template         a .   Create a template in /sitecore/templates/System/Forms/Fields.              b.  Inherit this template from Templates/System/Forms/Fields/Dropdown List              c.  Check the  shared  checkbox for all your fields in this template.              d.  Create Standard values. 2 . Create the View Model for custom field and razor view for displaying the form element         a .  Create a class, add the property, and override the InitItemProperties and UpdateItemFields                  methods.             b. Build and deploy.             c. Add a new folder ‘FormsDemo’ and place the view und...

Custom Component in Sitecore SXA

Image
Steps for creating custom component : A. Create a new module: 1. Navigate to /sitecore/system/Settings, right-click Features or Foundation, and insert a new folder. 2. Right-click Features or Foundation, click Insert, and click Module. 3. Enter a name and group the module under the new folder. 4. Check only Site Setup. 5. Click Proceed. Note : Do not place your custom modules in the Experience Accelerator folder. This folder is overwritten during updates. B. Clone Rendering 1. To clone the rendering that you want to use, navigate to /sitecore/Layout/Renderings/ Feature/Experience Accelerator/Page Content/Promo  2. Right-click the rendering that you want to clone.  3. Click Scripts and click Clone Rendering.  4. In the Create derivative rendering dialog box, fill in the following fields: C. Update Old Template Fields 1. Navigate to /sitecore/templates/ Features or Foundation/your folder/Custom ...