Exemple #1
0
 /// <summary>
 /// On startup, make sure that the blog script is added to Rendition.js. 
 /// </summary>
 private void initializing(object sender, EventArgs e)
 {
     Admin.AddUIScript(GetResourceString("BlogEditor.js"));
     Admin.AddUIScript(GetResourceString("GalleryEditor.js"));
     Admin.AddUIScript(GetResourceString("Ui_init.js"));
     Galleries = new Galleries(Site.CurrentSite);
     Blogs = new Blogs(Site.CurrentSite);
     // add localization
     System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
     xmlDoc.LoadXml(GetResourceString("Localization.xml"));
     FieldTitleLocalization.AddXMLSource(xmlDoc);
 }
Exemple #2
0
 /// <summary>
 /// On site refresh make sure the blog cache is refreshed.  Add the blog to the site's item colleciton.
 /// </summary>
 private void afterrefresh(object sender, EventArgs e)
 {
     Blogs = new Blogs(Site.CurrentSite);
     Galleries = new Galleries(Site.CurrentSite);
     return;
 }
Exemple #3
0
 /// <summary>
 /// Refreshes the galleries cache.
 /// </summary>
 public static void RefreshGalleriesCache()
 {
     Site.SiteState = SiteState.Refreshing;
     try {
         Galleries = new Galleries(Site.CurrentSite);
     } finally {
         Site.SiteState = SiteState.Started;
     }
 }