#
D3grade
Hi Guys,
I don't know if anyone else comes across this problem but i've hit it a number of times.
The problem i have is that i will produce a module that works one way and the code behind file will have certain rules to show and hide buttons etc. Then when it comes to using it on another project, the requirements on how it works might change. As we are not wanting to create new modules everytime, i'm trying to think of a way to do create different views for a module, without changing the core logic beind it.
One thing to note is that they way we use the cms at the moment is to have one central version and for a new site we will compile it all and just export the web folder so we just get the .asmx and .aspx files and all the logic is compiled into dlls.
Inspired by the MVC framwork i was wondering what we could do to create different self rendering views for the same module. In it's simplest form is could be giving the .asmx and .aspx files a public property with access to the main data for that module and embeding the view logic inline inside the .asmx and .aspx files themselves. Or another thing i've been thinking about is to get the modules themselves to just render XML and allow the admin to choose an XSLT file as to how this gets converted to HTML.
I'd like to get some peoples view on this, firstly on weather the way we are working is how most others are? and weather any of the 2 ideas would be a good one?
Many thanks
Matt
I don't know if anyone else comes across this problem but i've hit it a number of times.
The problem i have is that i will produce a module that works one way and the code behind file will have certain rules to show and hide buttons etc. Then when it comes to using it on another project, the requirements on how it works might change. As we are not wanting to create new modules everytime, i'm trying to think of a way to do create different views for a module, without changing the core logic beind it.
One thing to note is that they way we use the cms at the moment is to have one central version and for a new site we will compile it all and just export the web folder so we just get the .asmx and .aspx files and all the logic is compiled into dlls.
Inspired by the MVC framwork i was wondering what we could do to create different self rendering views for the same module. In it's simplest form is could be giving the .asmx and .aspx files a public property with access to the main data for that module and embeding the view logic inline inside the .asmx and .aspx files themselves. Or another thing i've been thinking about is to get the modules themselves to just render XML and allow the admin to choose an XSLT file as to how this gets converted to HTML.
I'd like to get some peoples view on this, firstly on weather the way we are working is how most others are? and weather any of the 2 ideas would be a good one?
Many thanks
Matt