I'd like to be able to pass some module-specific settings to the same razor script used in multiple places so that I can customize the script's output based on those settings. Does anybody know if that's possible?
For example, I have a razor script that displays the child pages of a current page with their descriptions in a nice format. Then, I use this script in a number of different places. But, say I wanted to pass the script some value - like a special CSS class I'd like applied to this page's instance of the module. How could I do that?
I think that razor should be able to access the module settings from the DNN helpers. But, is there a way for me to create those module settings?
Sorry I can't be more specific really - it's more of a question about the flexibility with DNN's razor implementation. I'd rather not write special scripts for each time I want the script to be slightly different, so I feel like there should be a way to pass values to the module. I know you can do it using querystring parameters, but, could I do something similar just using module settings?
If not, that'd be a cool feature - just a simple list of key/value pairs that I can set in the module settings that are accessible from the script.