Esempio n. 1
0
 private static void RewritePeople(Umbraco.Core.Models.IContent entity, IContentService contentService)
 {
     string newAlias = ParseUrl(InceptionConstants.English) + "," + ParseUrl(InceptionConstants.Dutch);
     //the additional if is because of this: http://issues.umbraco.org/issue/U4-4147
     if(newAlias != entity.GetUmbracoUrlAlias())
     {
         entity.SetUmbracoUrlAlias(newAlias);
         contentService.SaveAndPublishWithStatus(entity, 0, false);
     }
 }