/// <summary> /// This function is a customization point for Enumeration and Multiselect CMS /// elements to provide options like data driven select lists etc. /// </summary> /// <param name="schemaName">Schema root name (i.e. Page Type)</param> /// <param name="elementName">Tag name of the element</param> /// <param name="options">object that is used both as input and /// output for this customizable function. Some options include information /// about the request, while others allow modifying how the response is processed.</param> /// <param name="site">the CSAPI Site Object, created in a special session</param> /// <returns>Collection of strings and field choices</returns> public IEnumerable<SelectionChoiceItem> GetElementValues(string schemaName, string elementName, ChoicesProviderOptions options, ISite site) { // return new SelectionChoiceItem[0]; ///////////////////////////////////////////////////////////////// // Sample: // return new[] { // new SelectionChoiceItem { // Label = "One", // Value = "1" // }, // new SelectionChoiceItem { // Label = "Two", // Value = "2" // }, new SelectionChoiceItem { Label = "Three", Value = "3" } }; }
/// <summary> /// This function is a customization point for Enumeration and Multiselect CMS /// elements to provide options like data driven select lists etc. /// </summary> /// <param name="schemaName">Schema root name (i.e. Page Type)</param> /// <param name="elementName">Tag name of the element</param> /// <param name="options">object that is used both as input and /// output for this customizable function. Some options include information /// about the request, while others allow modifying how the response is processed.</param> /// <param name="site">the CSAPI Site Object, created in a special session</param> /// <returns>Collection of strings and field choices</returns> public IEnumerable <SelectionChoiceItem> GetElementValues(string schemaName, string elementName, ChoicesProviderOptions options, ISite site) { return(new SelectionChoiceItem[0]); ///////////////////////////////////////////////////////////////// // Sample: // //return new[] { // new SelectionChoiceItem { // Label = "One", // Value = "1" // }, // new SelectionChoiceItem { // Label = "Two", // Value = "2" // }, // new SelectionChoiceItem { // Label = "Three", // Value = "3" // } //}; }