Exam Area: Area 1 – Product Knowledge (15%)
Admin UI (top right search bar)
→ Search by Content name
→ Search by Content ID
→ Jump to content
Admin → Reports
→ Most edited pages
→ Changed by
→ Unpublished content
→ Expiring content
→ Link Status (broken links)
→ Custom reports (developer)
// Find content from a URL
public class ContentFinderService
{
private readonly IUrlResolver _urlResolver;
public ContentFinderService(IUrlResolver urlResolver)
{
_urlResolver = urlResolver;
}
public IContent FindByUrl(string url)
{
var routedContent = _urlResolver.Route(new UrlBuilder(url));
return routedContent;
}
}
// Get all content of a specific type
public IEnumerable<ArticlePage> GetAllArticles()
{
var criteria = new PropertyCriteriaCollection
{
new PropertyCriteria
{
Name = "PageTypeName",
Type = PropertyDataType.PageType,
Condition = CompareCondition.Equal,
Value = nameof(ArticlePage),
Required = true
}
};
return DataFactory.Instance.FindPagesWithCriteria(
ContentReference.RootPage, criteria);
}
// Use the Find add-on for full-text search
// See details: 03_Website_Implementation_Delivery/04_search_navigation.md
var results = _searchClient.Search<ArticlePage>()
.For("keyword")
.GetContentResult();
IUrlResolver.Route())