Developers

Developer Blogs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Developer Blogs

Partner Enablement
Partner Enablement

A step-by-step guide to downloading the React SDK examples and getting them working.

Read more...

Read more
1 0 265
Crownpeak Employee
Crownpeak Employee

I was recently asked by a customer how you could quickly create a carousel in DXM.  Of course, there are several ways to do this but I figured it may help others if I shared this very easy method.  Feel free to implement and improve as required.

Read more...

Read more
0 0 512
Partner Enablement
Partner Enablement

Several Search G2 updates have come out recently that I wanted to draw attention to.

CORS Headers

The Search G2 servers now respond correctly with CORS headers. 

Historically, the Search G2 servers in the cluster have not responded to CORS pre-flight requests, which has made using AJAX technologies in the browser to interact with Search G2 very difficult.

The Search G2 Javascript SDK resolved this problem by using JSONP. This approach has been adequate for some time, but it does have some security concerns and is not a technique that is in widespread use.

Note: this update to the Search G2 servers does not impact any existing code; it does enable developers who want to use AJAX technologies typical in modern single-page apps (React/VueJS/Angular etc.).

Random Sort Order

The ability to have search results returned in random order has also been deployed and is now generally available. 

Most search results are presented with some natural order (most recent, most relevant, etc.), but there are use cases where you might want to have a random order. One such use case is if you have a collection of related articles that you want to present to users and rather than having the same ones appear over and over, you can use random order to help visitors discover new content.

This feature is accessed by adding a "dynamic" field to the sort parameter in the format random_{seed}. The placeholder {seed} can be replaced with a random number seed but doesn't need to be replaced or updated on each call.

Example:

 

https://searchg2.crownpeak.net/cpuk-training-stage/select?q=*&wt=json&sort=random_1234%20desc

 

Demo

You can view a demo of these new features. You can also take a look at the underlying code by clicking the "Change View" button in the top right and picking "Editor View".

Read more
0 0 517
Crownpeak Employee
Crownpeak Employee

You can create dashboards in Crownpeak DXM that consume analytical data from almost any source.  This example shows you how to achieve this using Google Analytics; however, the same process can be applied for almost any provider.

Read more...

Read more
1 0 952
Partner Enablement
Partner Enablement

Content aggregation — sourcing content from several disparate sources, normalising the content, and then making it available to downstream consumers — is often pitched as a key benefit of headless content management. In this article we take a look at content aggregation and how this can be accomplished using DXM.

Read more...

Read more
1 0 839
Partner Enablement
Partner Enablement

In this first of a serious of articles on headless content delivery, I look at what headless means, where it shines and why it appears to be surging in popularity.

Read more...

Read more
1 0 1,065
Partner Enablement
Partner Enablement

This article will provide you with a step-by-step guide to publish content from the CMS to your website and on publish, post a link on a Facebook Page.

Read more...

Read more
0 0 1,010