Try our conversational search powered by Generative AI!

Custom page property

Vote:
 

Hello,

So I am trying to get a custom page property set in the admin panel. The structure shold be like this class

    public class Indexer
    {
        public string name { get; set; }
        public List options { get; set; } = new List();
    }

So when I go to editor I want to see something like

Continent      List of continent

Regions        List of regions

I am trying to create custom properties but haven't had any success as of yet. Do you guys think that this is something that could be done? 

#186038
Dec 11, 2017 9:47
Vote:
 

Looks more like a local block and then you use different selection factory for different pagetypes

https://world.episerver.com/blogs/Linus-Ekstrom/Dates/2013/12/SingleMultiple-selection-in-EPiServer-75/

https://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Content/Properties/using-a-block-as-a-property/

#186042
Dec 11, 2017 10:43
Vote:
 

So now I have created a block. How do I add multiple blocks into my page? I don't want to hard code the blocks. 

So lets say I have 9 indexes coming from my api so I would have 9 items like this

key listOfValues

key listOfValues

...

Now I have a block which has key and listOfValues

How do I make it dynamic?

#186046
Dec 11, 2017 11:06
* 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.