Hello Regis,
Thanks for letting us know.
The course somehow requires knowledge from the first part (Essentials), therefore I haven't added an explicit instruction to save the generated code of the Landing page page type into Business > Generated > Pages.
However, I'll add the instruction to the course to make it bullet-proof.
As for your second error, you've made a completely valid point as the course failed to tell you to create a small overload of the Business.Services.Query.DocumentQueryService.GetDocument method. The overload is nearly identical to the existing one, except for taking a string:
public DocumentQuery<TDocument> GetDocument<TDocument>(string pageAlias) where TDocument : TreeNode, new()
{
return GetDocuments<TDocument>()
.TopN(1)
.WhereEquals("NodeAlias", pageAlias);
}
With such method in place, you'll be able to query by page aliases in the LandingPageRepository class.
Thanks for your feedback!
Jan