This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.pdfIcon { background-image: url(/UI/Icons/pdfIcon.png);width: 32px;height: 32px;margin: 5px!important; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<module> | |
<clientResources> | |
<add name="epi-cms.widgets.base" path="/Styles/EpiserverUIExtensions.css" resourceType="Style" isMinified="false" /> | |
</clientResources> | |
</module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[UIDescriptorRegistration] | |
public class PdfFileDescriptor : FileIconDescriptor<PdfFile> { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FileIconDescriptor<T> : UIDescriptor<T> where T : ContentData | |
{ | |
public FileIconDescriptor() | |
{ | |
Type type = GetType(); | |
string fileTypeName = type.BaseType.GetGenericArguments()[0].Name; | |
IconClass = fileTypeName.Replace("File", "").ToLower() + "Icon"; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[GuiPlugIn(Area = PlugInArea.None, Description = "Web Application Settings")] | |
public sealed class ApplicationSettings | |
{ | |
private static ApplicationSettings instance; | |
public ApplicationSettings() | |
{ | |
PlugInSettings.SettingsChanged += UpdateVirtualRoles; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Application_Start(Object sender, EventArgs e) | |
{ | |
DataFactory.Instance.PublishedPage += Publishing_Page; | |
} | |
private void Publishing_Page(object sender, PageEventArgs e) | |
{ | |
PageData pageData = DataFactory.Instance.GetPage(e.PageLink); | |
pageData.ACL.Add(new AccessControlEntry("MyGroup", AccessLevel.FullAccess, SecurityEntityType.Role)); | |
pageData.ACL.Save(SecuritySaveType.Replace); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Application_Start(Object sender, EventArgs e) | |
{ | |
DataFactory.Instance.PublishedPage += Publishing_Page; | |
} | |
private void Publishing_Page(object sender, PageEventArgs e) | |
{ | |
e.Page.ACL.Add(new AccessControlEntry("MyGroup", AccessLevel.FullAccess, SecurityEntityType.Role)); | |
e.Page.ACL.Save(SecuritySaveType.Replace); | |
} |
NewerOlder