Client side content locations API

IContentItemLocationService

This interface is a WCF service contract that provides way to manipulate content locations from a client. You can get all locations for a given type and provider or get the locations for one particular item. The difference is that one particular item cannot match the filters of all of the locations.

When you get locations, you receive a WcfContentLocation item. The result is in JSON format.
You can change the location priority by moving it up or down, in order to change which location will be the default for a given group of items. The default location is the one that holds the canonical URL and all other locations will have the canonical URL link that points to that location. It is used to open the items of that group for preview.

WcfContentLocation

This class holds the information for content locations items – it contains the location ID, the site this location belongs to, the status of the location (the page lifecycle status), and the priority of the location. The default content location for a given item is the one with the lowest number for priority - it is the first by order.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?