Exemplo n.º 1
0
        private void InitRepeaterItems(string fieldValue)
        {
            var oldValues = MediaMultiField.GetValues(fieldValue);

            ItemsRepeater.DataSource = oldValues;
            ItemsRepeater.DataBind();
        }
Exemplo n.º 2
0
        protected void AddButton_Click(object sender, EventArgs e)
        {
            CurrentValue = MediaMultiField.AddValueToField(CurrentValue, "");

            var values = MediaMultiField.GetValues(CurrentValue);

            ItemsRepeater.DataSource = values;
            ItemsRepeater.DataBind();
        }
Exemplo n.º 3
0
        public static object GetUrlsFromMediaMultiField(EvaluationContext context, params object[] parameters)
        {
            if (parameters.Length != 1)
            {
                throw new NotSupportedException();
            }
            var fieldValue = parameters[0] as string;
            var urls       = MediaMultiField.GetValues(fieldValue);

            return(urls);
        }