Sitecore SXA Custom Component

Sitecore SXA Custom Component

Background Story

We had client requirement where they need convert list component with custom html div structure.

Steps

  1. Goto to “/sitecore/layout/Renderings/Feature/Experience Accelerator/Page Content/Page List” 
No alt text provided for this image

2.      Right click on it. Select script and clone rendering

3.      Once window loaded make related changes shown below. As per your requirement name naming structure.

No alt text provided for this image
  • Give name as per your new rendering. [We have used SectionList]
  • Give default rendering CSS class. [We have used as section-list] 

4. Parameters Tab

  • Select make copy of original rendering parameter
No alt text provided for this image

5.     On Datasource tab:

  • Select make a copy of original rendering parameters same as Parameter tab:

6.     On View tab:

  • Select existing MVC View File:
  • Define path and select name [We have used SectionList]
No alt text provided for this image

Note: Don’t Proceed we need Manual steps to do before proceed further.

7. Goto your root folder, in view folder Select PageList folder and copy and past on Same location.

No alt text provided for this image

8. Rename newly copied folder with your name [we have used SectionList]

9. As u can see we have copied from Page List so. There is UL LI structure in SectionList.

No alt text provided for this image

10. We need to change it to div based structure. So remove that ul li accordingly.

No alt text provided for this image

11. Now save the page.

12. Goto Presentation/Available rendering/Page Content

13. Select Edit.

No alt text provided for this image

14. Goto: Rendering/Features/Experience Accelerator/Page Content/SectionList Select SectionList

15. Click ok.

16. Goto Presentation/Rendering Variants

17. Right Click and Create New Variant [SectionList]

18. Select created variant. edit compatible rendering, add SectionList.

19. Now goto Experience Editor and you will find SectionList rendering in Page Content section. 


Happy Sitecore Coding.

More help contact us. https://www.addact.in



要查看或添加评论,请登录

Ketan Garala的更多文章

  • Sitecore SXA Sharing Content

    Sitecore SXA Sharing Content

    SXA lets you share styles, data sources, page designs, partial designs, and rendering variants between the sites within…

  • Sitecore XP Vs. Sitecore Personalize

    Sitecore XP Vs. Sitecore Personalize

    Listing features in Sitecore XP and showing parity or comparable features in Sitecore Personalize. The following table…

    3 条评论
  • Sitecore Experience Accelerator (SXA) Workflow

    Sitecore Experience Accelerator (SXA) Workflow

    SXA project workflow When it comes to a flexible tool like the Sitecore Experience Accelerator (SXA), there are…

  • XM Cloud Architecture

    XM Cloud Architecture

    XM Cloud comes with a Content Management application based on Sitecore XM including known but also new editing Tools…

    1 条评论
  • Sitecore OrderCloud XP (Extended Property) is not working in the filter.

    Sitecore OrderCloud XP (Extended Property) is not working in the filter.

    What is Sitecore OrderCloud XP? The reality of all enterprise platforms is the need to customize the data model. To…

  • Sitecore Image Optimization

    Sitecore Image Optimization

    During execution of one of the Sitecore project, we came across the disappointed statistics of Google PageSpeed for the…

    2 条评论
  • Sitecore AWS On-Premise Analytics Issue

    Sitecore AWS On-Premise Analytics Issue

    Recently we came across a challenge, Scenario was related to AWS on premise scaled environment setup where Analytics…

  • Sitecore 9: xConnect, 403 Forbidden Error

    Sitecore 9: xConnect, 403 Forbidden Error

    Solution Open PowerShell as an administrator and run this command. Get-Childitem cert:\LocalMachine\root -Recurse |…

  • Sitecore? XP 8 Website Development for .NET Developers Certification

    Sitecore? XP 8 Website Development for .NET Developers Certification

    Successfully Completed Sitecore Certification

    2 条评论
  • Performance Management Teams

    Performance Management Teams

    Building a Collaborative Team Environment Teams are expected to produce results, but performance is hindered when team…

社区洞察

其他会员也浏览了