Hot answers tagged

9

Yes - Sitecore JSS The officially supported Sitecore JSS has full support for ReactJS components on MVC pages in the form of Javascript Renderings or Client Side Embedding. JSS Javascript Renderings JSS Javascript Renderings offer support for both server-side and client-side rendering of ReactJS components on an existing Sitecore MVC page. Client Side ...


2

I have implemented a video component without using any react plugin. It supports both Youtube and Vimeo. The code snippet is very small. Please see below <iframe width="100%" height="345" title="event-video" src={videoUrl} /> Here I retrieve the videoUrl from Sitecore Item which should be of the embedding type. You can also retrieve the ...


2

First thing you need to do is to check if the CORS Origins in your API key is not empty and should allow something, you can use * for allowing all. Secondly, while accessing the public URL i.e. http://jssreactweb/ (may be different depending on your installation and configurations) You need to publish this API key. (It will be nice if you publish the whole ...


1

It really depends on your requirements, what you'd like to achieve and in what timeframe. You should consider that even if 10.1 just released, it will take some time until the project you want to migrate to will be released. If you plan on having all the sitecore capabilities (like personalization) in your React app you should use the first two options, as ...


1

The interface used in the example was off, the interface for fields should be an object with value. interface IFields { heading: { value?: string; }; }


1

It seems that Sitecore Commerce is not yet compatible with Sitecore JSS as shown from the comparison tables. From Sitecore JSS Site URL: JSS Release Note Currently as I am answering, the version is Sitecore JSS 13.0 for Sitecore 9.3 From Sitecore Experience Commerce URL: Sitecore Experience Commerce compatibility As we talk, there are no mention of the ...


1

Droplist is simply an item name (string) and it does not know anything about what item you have selected. Better you go with DropLink and get the TargetItem and take out the display name. However I will suggest you to create a new Field in your datasource items and fetch them for your component. ((LookupField)item.Fields["DropLinkField"]).TargetItem....


1

If you have the possibility to use Droplink instead of Droplist do that. Droplist field stores only the current name of the selected item but Droplink stores the item ID reference which would work in your case. With the ID reference you should able to get the display name of the selected item.


Only top voted, non community-wiki answers of a minimum length are eligible