How does DialogMaster.master is used?

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.
5/9/2012 12:26:45 PM
Gravatar
Total Posts 27

How is DialogMaster.master is used?

This is a very beginner question.

I need an anonymous (among other minor tweaks) Contact Form module, so I was going to copy the core Contact Form module to use as foundation. Before copying it, I was reading the source but found that I can't view "mojoPortal.Features.UI\ContactForm\MessageListDialog.aspx" in design mode, it complains that the Master Page "~/App_MasterPages/DialogMaster.Master" cannot be loaded.

The master page actually isn't in the mojoPortal.Features.UI project, but the solution as well as the individual project compile and run well.

Is this expected?

Edit: Mangled subject

5/10/2012 7:23:11 AM
Gravatar
Total Posts 18439

Re: How does DialogMaster.master is used?

My advice is stay out of design mode in VS, it doesn't work very well. In your custom project you could solve it by making a copy of that master page in your custom project with a different namespace and that may solve the designer error but the designer is fairly useless and you should be able to ignore the designer error and only worry if you get build errors.

the dialog master page is used in mojoPortal for pages that inherit from mojoDialogBasePage similar as layout.master is used for pages that inherit from mojoBasePage.

The VS designer in general is not very usefull but is especially not useful in mojoPortal because css is loaded differently at runtime than at design time. ie it requires a runtime context to load the skin files from /Data/Sites/[SiteID]/skinname according to sitesettings.

Hope that helps,

Joe

5/10/2012 10:57:04 AM
Gravatar
Total Posts 27

Re: How does DialogMaster.master is used?

I'll copy in my custom project just to get rid of the wavy error underlines. Thanks.

5/10/2012 11:16:31 AM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: How does DialogMaster.master is used?

About the "wavy lines", be sure to do this step:

You'll need to copy the whole pages section from the mojoportal Web.config into your project's Web.config.

From the Setting Up Your Own Projects for Custom Development document. I found that Steve Land's blog post referenced on that page is very helpful as well.

Jamie

5/10/2012 3:11:55 PM
Gravatar
Total Posts 27

Re: How does DialogMaster.master is used?

Maybe I wasn't clear about what I was doing:

I was reading the original ContactForm code to understand how to fork it. The "wavy lines" appear in the original, unmodified code, and the design mode was unusable. I was asking if this was normal for this codebase because the whole solution builds and runs fine.

Those links you referenced are awesome, though. I'm glad they're clearly available here because I don't think I would have been able to figure it on my own.

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