The article describes how Sitefinity CMS resolves content locations. It explains what ContentLocationService is, how to use it, and what problems can you solve with it. It clarifies what are a locations and their priority, and how you can set them.
Sitefinity CMS comes with a service called IContentLocationService. It gives you the ability to know the locations of an item in the system – these are the actual URLs of a content item in the context of the pages where it is displayed. Each Sitefinity CMS content widget uses the service to register the location of the content item on the page. For example, if you have a News widget on a page from your site, after you publish the page, Sitefinity CMS knows that on this page you have a widget capable of displaying content of type News. It also knows the exact content items that the News widget is configured to display. IContentLocationService API is also used internally to bring several key benefits to the product:
IMPORTANT: The default location of an item must be a page that is accessible by all users, that is, they have permissions to view it.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity