public void AddHtmlModuleToPagePageEditorsOnlyVisibility(string moduleName, string moduleType, string content, int moduleIndex) { AddHTMLModuleToPage(moduleName, moduleType, "Page Editors Only"); var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex); }
/// <summary> /// Adds an HTML module to the current page from the ribbon bar, then adds content to the module. /// </summary> /// <param name="moduleName">The title for the module</param> /// <param name="moduleType">The type of module to add. Either HTML or HTML Pro.</param> /// <param name="content">The content to add to the module.</param> /// <param name="moduleIndex">The index of the module on the page. To find the action menu image for the first module on the page use 0.</param> public void AddHTMLModuleToPageWithContent(string moduleName, string moduleType, string content, int moduleIndex) { AddHTMLModuleToPage(moduleName, moduleType); var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex); }
public void AddHtmlModuleToPageSelectVisibility(string moduleName, string visibility, string moduleType, string content, int moduleIndex) { AddHTMLModuleToPage(moduleName, moduleType, visibility); var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex);; }
/// <summary> /// Adds a module to a page and adds content to the module. /// </summary> /// <param name="moduleName">The name that will be given to the module. Entering "" as a name will not fill in the module title field.</param> /// <param name="moduleType">The type of module that will be added. Ex. HTML, Links, Dashboard etc.</param> /// <param name="content">The content that will be added to the module.</param> /// <param name="moduleIndex">The index for the module on the page. Ex. if the module will be the first one on the page the index should be 0.</param> public void AddHTMLModuleToPageWithContent(string moduleName, string moduleType, string content, int moduleIndex) { ModuleSelect.Select(moduleType); if (!moduleName.Equals("")) { ModuleTitleField.Value = moduleName; } AddModuleLink.Click(); System.Threading.Thread.Sleep(2000); var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex); }
/// <summary> /// Adds an HTML module to the current page from the ribbon bar, with the visibility set, then adds content to the module. /// </summary> /// <param name="content">The content to add to the module.</param> /// <param name="moduleIndex">The index of the module on the page. To find the action menu image for the first module on the page use 0.</param> public void UpdateHTMLModuleContent(string content, int moduleIndex) { var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex); }
public void AddHtmlModuleToPageSelectVisibility(string moduleName, string visibility,string moduleType, string content, int moduleIndex) { AddHTMLModuleToPage(moduleName, moduleType, visibility); var htmlModule = new HTMLModule(this); htmlModule.AddContentToModule(content, moduleIndex); ; }