PDA

View Full Version : Configuration parameters as Map & List



kennyd
01-08-2009, 04:18 PM
Is it possible to get Maps and/or Lists as part of the extension configuration parameters? I've tried but can't figure it out - I seem to just get strings.

SteveB
01-08-2009, 05:49 PM
Configuration parameters are always strings. But you can use string.deserialize (http://wiki.developer.mindtouch.com/DekiScript/Reference/DekiScript_Functions_and_Variables/String.Deserialize) to convert a string into a data structure.

kennyd
01-09-2009, 12:05 PM
Sorry, I should have more specific. My extension is written in C#. Is there a ready option here?

kennyd
01-09-2009, 02:16 PM
Never mind, I figured out I can do the same with DekiScriptLibrary.StringDeserialize.

Thanks for the help.

SteveB
01-12-2009, 10:37 PM
Yep, that's the way to go.