Skip to main content

Posts

Keynotes for Solr Index in Sitecore 9

I've recently implemented a product list page and -as you can guess- I've needed to configure a custom index for my products. I will share some keynotes about that, I believe they might be useful for anyone who needs a similar thing. How to configure a custom index in Solr? Luckily, we already have a good article which shows how to create custom Solr indexes in Sitecore 9. I followed the steps and created my product indexes (my Sitecore version is 9.0.1). I added necessary fields and templates to my config file: <!-- Included fields --> <include hint= "list:AddIncludedField" > <Name> {A00DA813-46FF-47E4-ADD7-75C1333ACF32} </Name> <CommercialShortText> {0AFE5D2A-8172-46BA-BD96-FD6838E3D65B} </CommercialShortText> <TitleProductPage> {E7E6F859-F989-4BA3-8F31-7A03C9BD69E4} </TitleProductPage> <ProductDes...

Working with Sitecore List Manager API (Version 9.0.1)

I've recently received a simple request to create a newsletter component. It was expected to get visitor's email, save it as contact and add it to newsletter list. I've found couple of example while searching but they were developed for old Sitecore versions. I was searching if there is useful API provided by Sitecore. And yes, I've found what I was looking for: The List Manager API var subscriptionService = ServiceLocator.ServiceProvider.GetService<ISubscriptionService>(); subscriptionService.Subscribe(contactListId, contactId); The code above seems clean and simple. But there is a problem: Where is that "ISubscriptionService"? There is no detail about which library we should use. I had a look at some of the libraries using dotPeek and found then. It is inside Sitecore.ListManager.XConnect This API has another useful method called "CreateSubscribedContact" to create contact but it was not suitable for my case. Because I was ...

How to style Sitecore SXA sites with Creative Exchange Live

It has already been passed 2 years from first Sitecore SXA version release.  It became more popular in time and reached enough maturity. We were thinking to use for a project and finally, I found an opportunity to try it.  There are already some good tutorials about using Sitecore SXA and Creative Exchange Live but I want to share my experience and give some keynotes about them, especially Creative Exchange Live. I've used these versions in my example: Sitecore Experience Platform 9.0 rev. 180604 (9.0 Update-2) Sitecore PowerShell Extensions: full 4.7.2 version (CM) Sitecore Experience Accelerator 1.7 Update-1 Setup Notes Import PowerShell Extesions before SXA package Restart the Sitecore Client and Restart the Sitecore Server before close import wizard Rebuild indexes Note: If you have a publish error, contact with Sitecore Support. I had and they provided me a patch to fix that issue. I cannot share that patch at the moment because the fix is needed...

A React Example in Sitecore

That's true, Sitecore components are useful and provide lots of facilities. They allow to build fully flexible website. And there is not much problem using post-backs to display your contents. However, if your website has user interactions, then it could be a headache. Too many post-backs would occur a poor user experience. That's why client-side technologies are really powerful and popular for a long time. There are plenty of javascript libraries and frameworks which all try to provide better user experience in different ways. It is not a topic of this article why I chose React. There are some good articles about it (e.g. Jonne Kats' great article ). However, one of the reasons is React only focus on view part. It is not a fully framework like Angular, it is rich featured library instead. And that's what I was looking for! The idea was to benefit Sitecore server-side and React client-side power. It seems they are very good match! Let's dive into code... I...

Repository & Service Pattern Experiment in Sitecore

I know it is assertive topic for first post, but maybe it is better to be assertive from the beginning! My plan is to keep here with as possible as challenging topics, discussions and experiments. Let's begin. Why Repository & Services Pattern instead of Modular Architecture? First, personal reason: I have experience with Repository & Service Pattern and not with Modular Architecture! I've recently worked for a long term custom big project (not Sitecore project), used this approach and saw its capabilities. During the development, we have faced too many requirement changes, new features etc. We could manage quite well with this approach. I couldn't see Modular Architecture capabilities for a such project yet. Second, technical perspective: Although, I haven't seen Modular Architecture capabilities on a real big project, when I have a look to Habitat and other implementations, I see some difficulties: Difficult to decide modules Big requests or requi...