Hi
I would like to hide pages in menulink pagetype if the user in not logged in.
Is there a way to implement this when retrieving pages for menu.
TopNavigation.cs
return Page.GetFromIDs(topMenuSection.Pages, _token)
.Where(x => x.IsPublished)
.Select(page =>
new ContentLink
{
Name = page.ShortName,
Url = page.GetUrlToPage(_webSiteId, _isInAdministrationMode),
IsSelected = _selectedStructureId.Contains(page.ID)
})
.ToList();
Litium version: 6.3