jacksorjacksor (Richard Jackson)
08/30/2023, 12:30 PMAmbert
08/30/2023, 1:16 PMAmbert
08/30/2023, 1:18 PMcsharp
public void Handle(SendingContentNotification notification)
{
// Hide URL information on nodes without assigned templates
if (notification.Content.TemplateId == 0)
{
notification.Content.Urls = Array.Empty<UrlInfo>();
}
This hides the normally automaticcally assigned Url in the backoffice as well 🙂Ambert
08/30/2023, 1:18 PMjacksorjacksor (Richard Jackson)
08/30/2023, 1:45 PMjacksorjacksor (Richard Jackson)
08/30/2023, 2:17 PMAmbert
08/30/2023, 3:10 PMAmbert
08/30/2023, 3:11 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by