1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Force Update of Custom Module Dropdown options from DynamicModulesConfig.xml

Force Update of Custom Module Dropdown options from DynamicModulesConfig.xml

5 posts, 0 answered
  1. Raymond Dowe
    Raymond Dowe avatar
    37 posts
    Registered:
    10 Mar 2010
    15 Feb 2013
    Link to this post

    I'm building a custom module for job listings. One of the fields will be location, which will be a dropdown that the client can use to select one of 100+ different locations.

    I noticed that these locations, when I manually add them, create nodes in DynamicModuleConfig.xml with text and value attributes. My hope was that I could create the xml nodes and paste them into that file, which would be easier than manually creating 100+ options.

    The problem is, when I add my nodes nothing happens. I restart IIS, still nothing. If I go into the backend and edit the custom module again, I get my old options (the ones I created through the interface). Publishing wipes out my changes in the xml files.

    Is there a way to force Sitefinity to read that xml file and recreate the options? Is there a different way to bulk add these options with creating them one by one in the backend?

  2. Victor
    Victor avatar
    94 posts
    Registered:
    15 Jun 2011
    15 Feb 2013 in reply to Raymond Dowe
    Link to this post

    Have you tried making a small change to the web.config file and saving

  3. Raymond Dowe
    Raymond Dowe avatar
    37 posts
    Registered:
    10 Mar 2010
    15 Feb 2013 in reply to Victor
    Link to this post

    Thanks for the idea. Tried that too, no changes.

  4. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    15 Feb 2013 in reply to Raymond Dowe
    Link to this post

    Probably the options are also stored in database? I'm not sure...

  5. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    20 Feb 2013
    Link to this post
    Hello,

    The choice options have to be added from the backend because as the DynamicMOdulesConfig.config file is generated with the choices database table to store the choices is created at the same time to store the choice selections for each item in the module and after this the config is read without updating the table with choices.

    Regards,
    Stanislav Velikov
    the Telerik team
5 posts, 0 answered