Friday, May 31, 2013

Adding modules to SageFrame V2.1

Adding Modules to the Sage Frame

Steps:
1. In visual studio, Solution Explorer Section, Goto Library -> Modules and Add the your existing Project (Class library project)
                 ----- Change the connection string to that of sageFrame which is located at connectionstring.config file.
                 ---- Build your Project.

2. Goto SageFrame in Solution Explorer -> Modules and Add a New Folder in the modules..Name it as you like(e.g.myModule ) and add the View/Control/Setting File. (eg. SampleModuleView.ascx and SampleModuleView.cs).
     Open the SampleModuleView.cs file  in the view/controller file and add a library 'using SageFrame.Web;' and inherit your main class  from :BaseUserControl

3. As you build your project in Step1 ..now Add a Reference to that project.

4. Build the Whole Solution and Debug.

5. Once SageFrame is opened in the browser, login using the username: superuser and password: superuser
6. Click on dashboard on the left top panel of the sageframe
7. Click on Modules in C-Panel, Create a new module -> Opens Modules Management window ->Select      Module Folder from the drop down list as you named (myModule) in the Sageframe.
8. Set package name as you would like to display the module as  and set key and title as you like, set 'Type= View' in the Module Control Setting and Save Module.
9. Search the module name and drag the module to the part you would like to place.