Skip to main content

(Part 1) DNN Event module customization

(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



  1. Exported the source zip file


  2. 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.

  3. 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.

  4. deleted the Resources.zip file and the resources empty folder.

  5. 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".

  6. 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)

  7. 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.


  8. Double clicked "My Project" > References > Updated by removing the unmatched references of dlls to correct ones



    1. DotNetNuke.dll mapped to the web site bin folder dll


    2. this exported folders DotNetNuke.Events.WebControls.dll


    3. this exported folders DotNetNuke.Events.ScheduleControl.dll


  9. saved the project and closed it


  10. Open the dotnetnuke source solution web site with library project in the root of the solution.


    1. This was pre-setup so it does not have any errors.

  11. Added "Events" module project to the solution

  12. Build solution, results no errors or warnings

  13. Clicked on "+" sign on DotNetNuke.Events module.

  14. Open the Events.aspx file and see what is their and then go to view code mode

    1. if the view does not change to view code, please review the earlier step 3.

------------------------------------------------------


This concludes the working Events source code.


------------------------------------------------------



  1. In Events.aspx Added
    "<asp:label id="phMainFooter" runat="server"></asp:label>" right below the
    "<asp:placeholder id="phMain" runat="server"></asp:placeholder>"

  2. 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