Making a reusable cms module (C #)

Are there any resources with information creating a reusable standalone module?
I need to create modules that I can quickly and easily contribute to projects. An example is the news module that will contain the administrative area, the news page, support CSS

and JavaScript

etc.
Do I smoke socks or is it possible?

+1


source to share


3 answers


You need plugins for your application.

I have a library (in development and in Spanish) that you can use as an example or starting point. I don't know how good the google translation is, but you can check the C # plugin tutorial at http://translate.google.com/translate?hl=es&ie=UTF-8&u=http://www.thealphasite.org/es/ sistema_de_plugins_con_c_y_net & sl = es & tl = en

The plugin allows you to plug P functionality into your application and, if designed properly, will allow you to dynamically move functionality from one application to another.



Anyway, the plugin just provides ease of use, but requires special attention to them. On the other hand, the basic "take this module and use it in another project" is just encapsulation and good design. If a module is well designed, it can be migrated to another site or application with minimal effort.

Keep in mind that specifically for the web, "theme" is a tricky issue, ie adapting your plugin to how a particular web interface is is another configuration step that must be included in the module itself. You can see an example in the Drupal theme function and theming api documentation .

+1


source


Have a look at www.allnewsmanager.net , maybe this is what you are looking for. It is a reusable module, free and open source.



+1


source


Not sure about any resources, but I did it myself, writing a CMS from scratch using a combination of custom controls for modules and a generic templating system that loads the specified custom controls into placeholders.

The templating system allows you to create an aspx file with a bunch of placeholders (as many as you need) - then you need a database or something similar to manage which controls go to which placeholders on which page. The template can handle many pages.

Downloading and learning about the dotnetnuke architecture can educate and provide ideas for structuring your own approach, even though the VB data structure is just as interesting.

0


source







All Articles