Is there a more detail mojo architecture flows than just the 3 layers introduction?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/15/2012 9:58:47 AM
Gravatar
Total Posts 6

Is there a more detail mojo architecture flows than just the 3 layers introduction?

Hi, great mojoPortal team!

      I am George Lin who has over 10 years experience on Java but a beginer on .Net, and your mojoPortal is a great CMS on the internet to use but it is a difficult one to be debugged to develop or custom a new feature.

      Is there a more detail mojo architecture flows than just the 3 layers introduction?

 

     For example, I want to enable your "captcha" picture validation on login page or register page, but it is great hard to debug the picture validation on contact page to imitate and copy the function to login page or register page. 

 

9/15/2012 12:58:20 PM
Gravatar
Total Posts 192

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

hi.

it's some years I'm using mojoPortal as my only portal, building my apps on it (I also have some experience with java. but I am more used to .net)

trust me, it's greatly well structured, and it's easy to debug, and it's easy to code against.

you just need to learn some basics to find out how things work, and sometimes at start it gets a little bit frustrating when you see something, but can't find it's code. but after getting used to it, it will be easy.

the only problem you may face will be you will need to be a good designer. but in codes, Joe has done everything near perfection.

I suggest you start by seeing videos Joe has put in documentation section.

9/15/2012 1:35:39 PM
Gravatar
Total Posts 18439

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

For debugging, make sure you are actually using the source code, people often try to use the deployment files in Visual Studio but they are meant for production deployment, for development and debugging and understanding the architecture its best to use the actual source code.

Hope that helps,

Joe

9/15/2012 10:56:56 PM
Gravatar
Total Posts 6

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

Hi,

    It is my honor to receive Mr. Joe and paiman's reply and teaching.

To Mr. Joe:

    Because it is strange that I cann't get the source code by totoriseHG no matter I use wire lan or not, so I downloaded the source code "mojoportal-src44889d10a626.zip" from the download link on page http://mojoportal.codeplex.com/SourceControl/changeset/view/2dd05b8c838b

   And would you like to confirm whether my this download is including all of your source?  Other info for your this confirmation are:

there are 5 .sln files including of mojoportal.sln and mojoportal.net35.sln, and I use mojoportal.sln to debug your project(I set IIS Express 7.5's point to the web folder and can directly change .aspx files under web folder).  You can have a look of my website www.gloCalHelp.com(abroad) or gloCalHelp.com(domestic), but I am sorry it is only Chinese now.

   And Is my debugging by using mojoportal.net35.sln correct(with IIS's document point change)? When I debug, I can find that your design is so incredible that you even dividing the presentation layer of .aspx into piecies, and I cann't find the piecie of picture validation in contact function  exists in  database table of mp_ModuleSettings. How can I add the piecie of picture validation function in login and register pages?

    Or, as my asking title, can you give me a more detali mojo architecture flows introduction than just the 3 layers introduction?

    By the way, as my understanding, even if I couldn't customize features on exsiting mojo not-real .aspx pages, I can use codesmith or other

code generating tool to generate a real page to replace mojo's some pages(by using mojo's administrating console), am I right? for example, you can see my website's default page is changing to a new mobiles friendly .htm pages.

    And I have other following questions, would you please answer me to make me really fall in love with mojo from now on to not only working with Java ?

1st question is this question's title, or would you like to answer me: besides enable debug level in log4j.config, how can I enable the log of your real SQL script and see, how can I see where you put your localization Chinese but not in Resource.Designer.cs .

 

2nd question: If I suggest mojo to other companies, can you give me a background technique support on security or others with some fees, and how much is the fee?

 

3rd question: Although I don't use the ...deployment files to debug, can you make me sure I can use your mojoportal.sln to debug your mojoPortal.Web.dll, mojoPortal.Business.dll and mojoPortal.Data.dll?

 

4th question: Because I am more familiar with Java, so maybe I will run a site including of your mojo and Java in the future, and even I have

install "Mono 2.10.8 for Windows", I cann't extract the linux rpm package(not install linux now) to get the requiring mono-mod or others,

and I cann't run mojo in Apache now, would you like to give me a seperate download to run apache on Windows XP(maybe I will run in Linux in the future but not now)?

 

5th question: Because I have no time to fix IIS 6's bugs on XP to support mojo, although I have temporally enable IIS express 7.5  to support external multi domains' access, is it really true that IIS express 7.5 is not a production server(cause it cannot supprt external IP's traffic access, and it can only run in administrator account to cause more easily potential infected)?

6th question: do you have other suggestions to make money on website and net? Is there a possible income if I help mojo such as holding a mojo-source reposity in China for fast download and mojo's fast expanding in Asia? such as help mojo to do a Chinese localization or Japanese localization or help to fix bugs and upgrade a function for mojo in the future?

Mr. Joe and other mojo team members are my admiring pioneers and teachers, hope that I can be a good member of you. Maybe I can make mojo's java version with the genius  generating technology in a long future. And I am going to keep at least around 1% of my earning for Mojo from now on from my website.

 

To Mr. Paiman:

       Thank you very much for your encoragement.  I have been a good designer on Java for several years but not on .Net.

>>>but can't find it's code. but after getting used to it, it will be easy.

If you cann't find it's code, can you find it's function or module's enable configuration? otherwise, how can you customize mojo's features and getting used to it? otherwise, we can only throw the good mojo feature away and write our own .net feature, isn't it?

Can you tell me the detail mojo flows or how to quickly customize a feature in mojo? I can help you with others, such as good practise on Java, Oracle, Chinese, Japanese or others.

What are you using mojo for? a website or a member of Mojo?

 

Bye.

 

 

 

9/16/2012 2:10:08 AM
Gravatar
Total Posts 192

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

some of the sites I have build using mojoPortal are:

www.eranews.ir

www.mazandlig.com

www.sere.ir

and there are others too.

OK, for starting fast, check the videos. there you will learn how to customize mojoPortal to any extent you need, and it's easy.

 

9/16/2012 8:04:45 AM
Gravatar
Total Posts 6

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

Hi, Mr. Paiman,

9/16/2012 2:43:48 PM
Gravatar
Total Posts 18439

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

I don't trust the zip downloads of source code from codeplex, people report problems when they get the code that way. See the tips in the article getting the code with Tortoise HG, if you first clone it to revision 0 then you can pull the changes after that and it should work.

Also please read the READMEVisualStudio.txt file in the root of the source code.

The main thing to understand is that the features form other projects are copied to the /Web folder by post build events. You can debug any feature but you must run it in the contect of mojoPortal.Web project, ie mojoPortal.Web project needs to be the startup project int he solution. You must rebuild the entire solution at least once to make sure all of the feature code is compilked and copied by post build events.

Hope that helps,

Joe

9/18/2012 3:24:57 AM
Gravatar
Total Posts 6

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

To Mr. Paiman,

Thank you for your guiding, I will check the videos, and now I am still very confused with these:

1, Even I have browse Mojo's API document, I cann't find a <mp:Panel-tag list api just like Java, so it may be difficult

to use mp tag to develop a new function,  do you know where is the <mp:Panel, <mp:SiteLabel or <asp tag list API?

 

2, do you have apache+mono-server to host asp.net ? can you send me the necessary files?

 

3, are you still  not able to code in mojo but can only use mojo's administrating console to customize a new feature?

 

Thank you ahead

 

TO Mr. Joe,

      Many thanks to Mr. Joe to self reply to me when you are so busy, I will start to see the training videos and documents, but I think

if there is a <mp:Panel, <mp:SiteLabel or <asp tag list API, it may be fast for a beginner to use mojoPortal.

and would you like to send me the apache+mono-server manual install package for hosting mojoPortal in windows XP?

 

 

 

9/18/2012 5:35:30 AM
Gravatar
Total Posts 192

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

Smile

I did a good guess and knew this is where you will need to ask.

First you need to know about asp.net user controls. after you learn the basics about them, you may think that in order to use any user control, you will need to register it in the page it's being used. but it's not true all the time.

you can register a custom user control application-wide, and use it in any page of the application. how?

register it in web.config under <pages> tag.

by checking web.config, you will see the <pages> tag:

<pages validateRequest="false" enableViewStateMac="false" viewStateEncryptionMode="Auto" maxPageStateFieldLength="100" controlRenderingCompatibilityVersion="4.0"  clientIDMode="AutoID">
<namespaces>
<add namespace="System.Globalization"/>
<add namespace="System.Web.Helpers" />
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Web.WebPages"/>
<add namespace="mojoPortal.Business"/>
<add namespace="mojoPortal.Business.WebHelpers"/>
<add namespace="mojoPortal.Web"/>
<add namespace="mojoPortal.Web.Controls"/>
<add namespace="mojoPortal.Web.Framework"/>
<add namespace="mojoPortal.Web.UI"/>
</namespaces>
<controls>

<add tagPrefix="portal" namespace="mojoPortal.Web.UI" assembly="mojoPortal.Web"/>

<add tagPrefix="mp" namespace="mojoPortal.Web.Controls" assembly="mojoPortal.Web.Controls"/>
<add tagPrefix="mpe" namespace="mojoPortal.Web.Editor" assembly="mojoPortal.Web.Editor"/>
<add tagPrefix="goog" namespace="mojoPortal.Web.Controls.google" assembly="mojoPortal.Web.Controls"/>
<add tagPrefix="portal" tagName="ChildPageMenu" src="~/Controls/ChildPageMenu.ascx"/>
<add tagPrefix="portal" tagName="Breadcrumbs" src="~/Controls/BreadcrumbsControl.ascx"/>
<add tagPrefix="portal" tagName="SearchInput" src="~/Controls/SearchInput.ascx"/>
<add tagPrefix="portal" tagName="SiteMenu" src="~/Controls/SiteMenu.ascx"/>
<add tagPrefix="portal" tagName="StyleSheet" src="~/Controls/StyleSheet.ascx"/>

 

now you will know that anywhere the mp tag prefix is used, the control, a webcontrol, is found under mojoPortal.Web.Controls.

check the project, and find sitelabel.cs to find out how it's implemented.

an important note is that you need not this for your custom features, or at least not often. for normal features, you will need to create custom control and codes (and maybe pages) that support it, and then register it as a module in mojoportal. (see the videos and check the documentation.)

 

2. I don't have any experience with this.

3. well for a new feature, you need at least a simple user control, in the simplest form.

but there are some modules in mojoportal that give you advanced features, like form wizard pro, by which you can create custom forms... (you can check demo.mojoportal.com for a demo of it.)

9/18/2012 5:39:07 AM
Gravatar
Total Posts 192

Re: Is there a more detail mojo architecture flows than just the 3 layers introduction?

and get out of java world. API documentation is not used extensively here.

search the internet for your questions and you fill find the answer sooner, or ask it in the forum.

I didn't like java so much, because it was not easy to find answer of the questions in the internet by a simple search, but it is for .net

You must sign in to post in the forums. This thread is closed to new posts.