/// <summary> /// Community Event for when a CommunityPage is published /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void SociaCommunityPage_PublishedEvent(object sender, EPiServer.ContentEventArgs e) { if (e.Content is CommunityPage) { var communityPage = e.Content as CommunityPage; var groupName = communityPage.Name; var group = groupRepository.Get(groupName); var url = ExternalURL(communityPage); group.PageLink = url; group = groupRepository.Update(group); } }