(Part 1) DNN Event module customization!
DNN Event module customized with additional fields and annonymous add events functionality
Hi their,
I have just started customizing the events module Events_04.00.02_Source. I will be updating the steps I have taken so far and what I am doing to that I can keep every one upto date about the progress and if I find issues I will be asking for help here.
Steps I have taken so far
- Exported the source zip file
- Renamed the exported output folder named with xxxx_Events_04.00.02_Source so that I don't mistakenly overwrite it, note I didn't changed the project name or anything else just the folder in which the files are in.
- Inside the exported project, I extracted the Resources.zip file into Resources folder, then went inside the resources folder, selected all files and moved it to parent of the resources folder. Yes I could have exported directly their but just thought to explain it better.
- deleted the Resources.zip file and the resources empty folder.
- On the root exported folder, select the folder name, then properties, and if "Read Only" checkbox seems partially checked then "uncheck" it and click ok, and select "Apply to all files and subfolders".
- Opened Microsoft Visual Studio 2008 (If you do not have it then, you can download Visual Studio 2008 Express and SQL 2008 Express from microsoft express sub site for free)
- Opened the project and said yes to creating the "DNNEvents" virtual directory on the local iis system, if this virtual directory already exists then go in the iis and delete it before clicking yes.
- Double clicked "My Project" > References > Updated by removing the unmatched references of dlls to correct ones
- DotNetNuke.dll mapped to the web site bin folder dll
- this exported folders DotNetNuke.Events.WebControls.dll
- this exported folders DotNetNuke.Events.ScheduleControl.dll
- saved the project and closed it
- Open the dotnetnuke source solution web site with library project in the root of the solution.
- This was pre-setup so it does not have any errors.
- Added "Events" module project to the solution
- Build solution, results no errors or warnings
- Clicked on "+" sign on DotNetNuke.Events module.
- Open the Events.aspx file and see what is their and then go to view code mode
- if the view does not change to view code, please review the earlier step 3.
------------------------------------------------------
This concludes the working Events source code.
------------------------------------------------------
- In Events.aspx Added
"<asp:label id="phMainFooter" runat="server"></asp:label>" right below the
"<asp:placeholder id="phMain" runat="server"></asp:placeholder>" - In Events.aspx.vb added
Dim txtSuggestAEventURL As String
txtSuggestAEventURL = "~/DesktopModules/Events/EventAdd.aspx?ItemID=" & itemId & "&Mid=" & ModuleId & "&tabid=" & TabId & "&selecteddate=" & SelectedDate.ToShortDateString & "&culture=" & System.Threading.Thread.CurrentThread.CurrentCulture.Name
Me.phMainFooter.Text = Me.phMainFooter.Text.ToString & "<a href=""" & txtSuggestAEventURL & """>Suggest a Event < and > to <> respectively.
right below "Me.phMain.Controls.Add(objPortalModuleBase)" line 119 in 04.00.02 source code version.
This was a part 1 and I will be posting part 2 soon.
Thanks,
Wasay
Comments
Post a Comment