All posts by jensgust

A tip on debugging Sitecore search

You might find this useful if you don’t already know about it. I ran into a problem the other day where the tagging section did not work properly. No tags at all were displayed for selection, I suspected that there was something wrong with the search in the field. You can find all the info you need to debug this and just copy + paste in the search log and your favorite index viewer. Continue reading A tip on debugging Sitecore search

Instantiate page button

Create items via Sitecore ItemService, Experience Editor button and JavaScript.

So what is going on here? That is a complicated title! Well yes it is, that’s because this was the easiest way to achieve what i wanted and it resulted in what could have been three separate blog posts. I’ll try to keep it together by starting with an explanation. Continue reading Create items via Sitecore ItemService, Experience Editor button and JavaScript.

Add elements to form

Let there be forms! Sitecore Forms!

So Sitecore 9 is out and with it quite a lot of new exciting features and functions. One is more awaited than the others. Sitecore Forms. In this blog post I will be taking a look into the forms in combination with the experience accelerator. Hopefully Sitecore has a new powerful tool that editors can use to create powerful forms with ease. Continue reading Let there be forms! Sitecore Forms!

Adding title and image through SXA

SXA and Sitecore 9 – Setting up a simple site

I have not used SXA (Sitecore experience accelerator) a lot and I am not sure why. The fuzz has not been about SXA, but maybe there should be more fuzz about it. It is a handy tool for enabling the fast creation of sites. It should really be considered, at least when creating campaign sites or smaller solutions. Continue reading SXA and Sitecore 9 – Setting up a simple site

Customize default search in Sitecore experience editor

Many of today’s Sitecore implementations contain lots and lots of items. In many cases the items are stored in buckets and the editors are therefore totally dependent on finding what they are looking for by using the search functionality in Sitecore. When entering the search in Experience Editor the editors may become a bit overwhelmed with information since the default is to search for everything. Normally the editor could start filtering and then search for whatever is needed. Continue reading Customize default search in Sitecore experience editor

Html stripping not working correctly in single-line field

As the title says when an editor pastes text into a single-line field in the experience editor, the html formatting does not get stripped correctly. This bug has been verified in Sitecore 8.1 and 8.2. I have not tested in any other versions.

Html stripping does not work

What I have done here is to change the field type in the home item of an empty Sitecore installation to a single-line field. I then searched for “Sitecore rules!” and copied+pasted the title from google into the single-line text field and saved the item.

There is a patch for this provided by Sitecore support. It can be downloaded here:
https://sitecore.app.box.com/s/zx2b2su49ye6ihd1vqqbtv9n2g47akj3
When applied the html stripping of formatting should work as intended.

The version of the patch says that it is built for Sitecore 8.2, but Sitecore support has told me that it will work fine for Sitecore 8.1 as well.

 

 

Integrate Microsoft AI in Sitecore media library

Sitecore’s media library does a good job of keeping the media that you want to use on your site, but the amount of media in a large site may become hard to navigate. The editors will then rely on search to find what they are looking for. Wouldn’t it be nice to be able to search for the contents of the images instead of the metadata? Continue reading Integrate Microsoft AI in Sitecore media library

Extending scheduled task to set execution time

In a lot of cases it would make sense to tell Sitecore at what time to execute scheduled tasks. If for example a heavy import job is to be executed once a week it would make sense to do it at a time when the editors are not active or when the traffic to the site is low. Continue reading Extending scheduled task to set execution time

Make Sitecore stop publishing certain items

This is part 2 of adding a second master database. When having a second database with the purpose of holding millions of items and not needing publish since it will contain information from third party systems such as DAM or PIM we need to stop the publisher from publishing the information that is linked in from the second master database. Continue reading Make Sitecore stop publishing certain items

How does Sitecore ContentSearch determine which index to use

In the official documentation you can read that Sitecore will choose index based on the RootPath in the crawler and based on the placing in the web.config.

Basically if you create an index that indexes everything under /sitecore/content/home/products you will need to get that index defined before for example the master index in the web.config otherwise your new index will not be considered at all. But what does actually happen here? Continue reading How does Sitecore ContentSearch determine which index to use