More in this section
Forums / General Discussions / Nested config sections

Nested config sections

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Darrin Robertson
    Darrin Robertson avatar
    105 posts
    Registered:
    18 Jul 2004
    17 Dec 2014
    Link to this post

    I want to create a custom config with a top node which expands to my different section nodes.

    How do I create that top node and add child sections under it? (I have used Thunder to generate each of my current sections I just now need to create that parent node which will hold all the child sections.

    Checking the SF docs the help page is currently a 404.

    Darrin

  2. Darrin Robertson
    Darrin Robertson avatar
    105 posts
    Registered:
    18 Jul 2004
    18 Dec 2014 in reply to Darrin Robertson
    Link to this post

    Finally found it

    For the child elements add a constructor

    public MyElement(ConfigElement parent) : base(parent) { }

    Then ref the child in the parent as

    [ConfigurationProperty("My")]

    public MyElement Twitter
    {
        get { return (MyElement)this["My"]; }
     }

    Answered
2 posts, 1 answered