how to override other module in my module

Topics: Customizing Orchard, Localization, Writing modules
Nov 3, 2013 at 7:28 AM

I want to override built-in orchard DateTimePicker to another calendar system in my own module (Shamsi DateTimePicker) and then set option in recipe to select calendar system in orchard installation.
please guide me and say steps for do this...

Thanks guys.
Nov 3, 2013 at 12:59 PM
Edited Nov 3, 2013 at 1:00 PM
Couple options here. A good example to look at would be the TinyMCEDeluxe module, and examine how that is built. Specific points of interest will be ResourceManifest.cs and the Views & Scripts folders. This is a great example of overriding a form input from one module in another.

Other options are to simply override the DateTime.cshtml view, or if you don't want to do templating you can always do something client-side when the DOM is constructed with JavaScript.
Marked as answer by cyclops24 on 3/7/2014 at 6:59 AM