Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Dynamic Dropdown properties

Vote:
 

Hi.

I need to create drop down property in my pagetype but items in dropdown property generated dynamically.

How impl that functionality? 

#71325
May 15, 2013 17:03
Vote:
 

Hi

Take a look at this example: EPiServer 7: Configuring editors for your properties.

Frederik

#71326
May 15, 2013 17:15
Vote:
 

Thanks, nice functionality . 

Thanks for answer. 

#71329
May 15, 2013 23:40
Vote:
 

Frederik Vig after creating that functionality I cant open my page in edit mode ? In What a problem?
Thanks advance.

#71381
May 16, 2013 16:36
Vote:
 

Open up the browser console and see if you see any JavaScript errors that might explain it.

Frederik

#71382
May 16, 2013 16:38
Vote:
 
#71387
May 16, 2013 16:55
Vote:
 

when I comment code, this error is disappeared

#71390
May 16, 2013 17:06
Vote:
 

Could you try in Firefox using Firebug? I think there are some more errors that'll show up there.

Frederik

#71391
May 16, 2013 17:06
Vote:
 

No errors in firefox but cms shows that we still go to edit mode http://screencast.com/t/DLBNmrmcU

#71392
May 16, 2013 17:11
Vote:
 

Console shows only this info http://screencast.com/t/yb6lCnw4y 

#71393
May 16, 2013 17:12
Vote:
 

And any exception in Visual Studio in debug mode

#71394
May 16, 2013 17:24
Vote:
 

I think I got some wierd error when I didn't have strings for both value and text properties on the selectitems.

#71408
May 17, 2013 9:18
Vote:
 

I copied the example. 

    public class LanguageSelectionFactory : ISelectionFactory
    {
        public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata)
        {
            var languages = new List<SelectItem>();
            languages.Add(new SelectItem() { Value = "EN", Text = "English" });
            languages.Add(new SelectItem() { Value = "SW", Text = "Swahili" });
            languages.Add(new SelectItem() { Value = "PF", Text = "French Polynesia" });
            return languages;
        }
    }

    

#71450
May 18, 2013 23:41
Vote:
 

I have a hard time seing how setting up a selection list would cause cross site scripting issues. Have you investigating the code that accesses the remote site (http://ct1.addthis.com)? Is this something in your templates, content or UI an extension?

#71455
May 20, 2013 9:13
Vote:
 

I found the problem. In examples  

ClientEditingClass = "epi.cms.contentediting.editors.CheckBoxListEditor";

replace with
      ClientEditingClass = "epi.cms.contentediting.editors.SelectionEditor";

and it work..
#71536
May 22, 2013 10:33
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.