Mono Support Add Existing MonoX pages and to the Custom Project. 

Viewed 14346 time(s), 9 post(s), 5/22/2013 12:44:14 PM - by mev9669
5/22/2013 12:44:14 PM
515 Reputation 67 Total posts

Hi I have created a custom Project and I want to add the Social networking and other user profiles module to the custom project? How can I do this? 

i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.

thanks for your help.

1
5/23/2013 9:03:42 AM
15993 Reputation 2214 Total posts

Hi,

we will provide you with a custom project setup with one page containing few social networking modules, we will post this here so you can jump start your evaluation.

When you add new pages manually in e.g. Windows Explorer or via Visual Studio you will have to access these pages directly in order for them to automatically hock into a system. If you do this through the page management screen then this will be done for you automatically.

i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.
Regards

2
5/23/2013 9:41:58 AM
515 Reputation 67 Total posts

Thanks a lot Korvat. I hope this article will someone else in the future. Also it will be great if you can add this to your documenation or manual..

3
5/23/2013 11:55:43 AM
515 Reputation 67 Total posts

Can you please also add some pages with the code behind file .aspx.cs files in the root directoty? I get below error when I add a page in the root and it inherits masterpage. Please see the error below
Unable to cast object of type 'ASP.default2_aspx' to type 'MonoSoftware.MonoX.BasePage'.


<%@ Page Title="" Language="C#" MasterPageFile="/MonoX/MasterPages/DefaultSmallHeader.master"
    AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="ProjectName.Web.Default2" %>
        

4
5/23/2013 12:03:03 PM
15993 Reputation 2214 Total posts

Can you let us know what project type are you using - Web Application or Web Site ?

5
5/23/2013 12:04:05 PM
515 Reputation 67 Total posts

Solve the second problem by : MonoSoftware.MonoX.BasePage to the code behind

6
5/23/2013 12:14:33 PM
15993 Reputation 2214 Total posts

Yes, you should inherit from BasePage if you want the MonoX CMS functionality to kick in.

Let us know if you need more information and we will provide you with the jump start project soon.

7
5/23/2013 3:22:51 PM
250 Reputation 19 Total posts

Hi Mev9669,

I've attached a sample project containing one page with some web controls. I had MonoX folder in the same folder where I had the solution files, so the references are set to match that.

If you have any further questions, please let us know.

Best regards,
Dalibor

8
5/23/2013 4:28:42 PM
515 Reputation 67 Total posts

Thanks Dabilor,

I will give this a try. 

9
This is a demo site for MonoX. Please visit Mono Software for more info.