Embedding custom application pages into mojo

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.
11/2/2009 3:36:38 AM
Gravatar
Total Posts 68

Embedding custom application pages into mojo

Hi Joe,

I have developed a whole new staff directory which is a ASP.NET in VB code application. It uses many ASPX pages and html pages as well.

I would like to integrate this application into Mojo. I tried and the only way it works is if I use the HTML fragment include and then enter the following into it.

<iframe width="100%" height="600" frameborder="0" name="ifWorkspace" id="ifWorkspace" style="border:none; border-color:#FFFFFF;" src="http://myIntranet.domain.org/Intranet_Apps/Staff_Directory/Default.aspx"></iframe>

Then the page shows up when I click the Staff Directory page in my Mojo navigation. But this IFrame is rather annoying because it creates another vertical scroll bar when the results are longer than 600pixels which is the height of the iframe.

Is there a better way to get my aspx page to show as just another page in the Mojo menu and for it to just access the data I need from the HR database?

I read about Adding Features but I dont know if that is possible with this complex application that I have built.

What about AJAX? Could I somehow leverage AJAX to have a content module that shows the default search page for the staff directory and then have it post using AJAX to retrieve the data or something?

Please help.

(p.s. I am enjoying the new developments in mojo including the Twitter and Flickr additions)

Dominique

11/2/2009 6:12:20 AM
Gravatar
Total Posts 18439

Re: Embedding custom application pages into mojo

Hi,

You can create a page in the menu the normal way, then in Page Settings you can put in a fully qualified url (http://someurl.aspx) to the custom page. However, making it visually integrated to the site is another matter. You would want your custom pages to inherit from mojoBasePage and use the same skin/master page arrangement.

I don't know any solution to integrate some arbitrary app. mojoPortal is meant to be a development platform that you can build features on, it is not some magic integration system.

In mojoPortal you develop the entry point of an application as a UserControl that can plug into a CMS page, then from there it can link to supporting pages and pass in the pageid and module id to enforce security and to keep the main menu highlighted correctly since it sees tha pageid param as well.

Hope it helps,

Joe

11/2/2009 6:32:44 AM
Gravatar
Total Posts 18439

Re: Embedding custom application pages into mojo

I forgot to mention, that you don't have to use the html include for an iframe, you can paste it into the html view using the editor in the regular Html Content feature. Note however, that in the current release this does not work using TinyMCE as TinyMCE removes the iframe. I have fixed this for the next release but for now you can work around it if you change to FCKeditor then add the iframe using source view.

Best,

Joe

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