Setting up Module

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.
4/9/2008 10:02:22 AM
Gravatar
Total Posts 13

Setting up Module

Hi,

Can i trasform, in example, the HtmlContent module as the WebStoreModule? So with  HtmlContent.UI, HtmlContent.Business and HtmlContent.Data.pgsql  projects.

Can you help me?

 

thank you

Michele

4/9/2008 12:45:13 PM
Gravatar
Total Posts 18439

Re: Setting up Module

Hi,

Yes its possible to implement a clone of the Html content feature as external projects using the same example pattern as you see for WebStore.

No I cannot help you do it. If you run into specific questions I will try to answer as best as I can.

Best,

Joe

4/10/2008 7:31:21 AM
Gravatar
Total Posts 13

Re: Setting up Module

Hi Joe,

how can i define the layout Master page and the stylesheet as an external project?

 

Thank you

Michele

4/10/2008 8:25:07 AM
Gravatar
Total Posts 18439

Re: Setting up Module

It can be done the same way as with other files. To use it in mojoportal you create a new skin (master page is just one part of skin) and copy it to the correct location using post build events.

to use in mojoPortal your master page should inherit code behind from the same base class as other layout.master files in existing skins.

note that the skin or master page is not a concern of modules, it is set at the page level not at the feature instance.

4/10/2008 11:12:35 AM
Gravatar
Total Posts 13

Re: Setting up Module

Hi,

if i use the master page of mojoPortal.Web i have a error on System.Web.UI.ScriptManager.

Error 1 The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) . how it's possible?

Can you help me?

Thank you

Michele
 

4/11/2008 11:08:30 AM
Gravatar
Total Posts 13

Re: Setting up Module

Hi Joe,

when i define the layout master page, i have inserted the follow:

tag

<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="true" />

 

in web.config i insert the entry:

 

<add tagPrefix="portal" tagName="Breadcrumbs" src="~/Controls/BreadcrumbsControl.ascx" />

 

but VisualStudio says that

Error 1 Element 'PageMenu' is not a known element. This can occur if there is a compilation error in the Web site.

have you an idea of this error?

Thank you a lot for your help.

Regards

Michele

4/11/2008 11:12:01 AM
Gravatar
Total Posts 70

Re: Setting up Module

Your code is in an external project right? I think you need to copy some stuff from the mojoPortal Web.config into your project Web.config. You need to reference mojoPortal.Web project and add the controls references to the <pages> <controls>... section of Web.config

Hope it helps,

Steve

4/11/2008 11:14:57 AM
Gravatar
Total Posts 70

Re: Setting up Module

Also your custom project cannot be run by itself as the startup project. You must make mojoPortal.Web the startup project and use post build events to copy your files to locations under the Web project.

Steve

4/11/2008 11:22:01 AM
Gravatar
Total Posts 13

Re: Setting up Module

my problem is that i copy the reference of mojoPortal.web in the Web.Config of my external project,

but the error is also present.

 

Thank you for your help.

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