green field

Intranets and Private Networks

For the most part mojoPortal out of the box should work fine for most intranets as long as your users also have internet access. If your users don't have internet access but only have access to the intranet, then you need to configure a couple of things differently to make your mojoPortal site work correctly.

The issue is that we use the YUI javascript library and jQuery with mojoPortal, but we no longer ship the YUI javascript or the jQuery javascript with mojoPortal because it makes our download a lot bigger, and in most installations its works best and is a best practice to load the javqascript from the Google CDN (Content Delivery Network). All that means is we load the javascript from a google url instead of hostiong the files within the mojoportal installation. This is a best practice because it saves some load on your own servers and because the same files can be cached in the browser for any sites that use the google CDN. But if the internet is not avalable to all the users, then you need to host the files yourself. Developers may also want to do this if they find themselves working frequently without internet access on their development machines. If you are working while flying on a plane for example you may not have access to the internet and it may be hard to test your mojoportal projects unless you download and configure the YUI files and jQuery on your machine when you do have internet access so you can use them when you don't.

So I will here outline the steps to install the YUI files within our mojoPortal installation to help you resolve this issue if it applies to you.

1. Download YUI, use version 2.6.0 as there are issues with higher versions

2. Copy only the "build" folder from YUI, and paste it beneath the /ClientScript folder, then rename it to yui260 or whatever to reflect the version.

3. In your Web.config or ideally in your user.config set this to false:

<add key="UseGoogleCDN" value="false" />

4. Modify these settings to reflect the new path for the YUI files, so since I named my yui build folder yui260, then my settings are like this:

<add key="YUIBasePath" value="~/ClientScript/yui260/" />
<add key="YUITabCss" value="~/ClientScript/yui260/assets/skins/sam/tabview.css" />
<add key="YUISkinImagePath" value="/ClientScript/yui260/assets/skins/sam/" />

You will find existing settings with an older incorrect version.

3. Download jQuery, as of this writing the latest version is 1.3.2, so I create a folder /ClientScript/jquery132 and I download the jQuery file, it cam down as jqquery-1.3.2.min.download, I put it in the folder and renamed it to jquery.min.js

4. Set the correct path in this setting:
<add key="jQueryBasePath" value="~/ClientScript/jquery132/" />

Thats it, you are now self hosting the YUI and jQuery files and your users don't need internet access, only access to your site.

Download the jQuery UI files and put the js folder beneath /ClientScript/ and rename it to jqueryui17, replacing the 17 with whatever version of jQuery UI it is.

Rename the file jquery-x.x.x.custom.min.js to jquery-ui.min.js

Then configure this settign with the appropriate path:

<add key="jQueryUIBasePath" value="~/ClientScript/jqueryui17/" />

When you install the jQueryUI files, there will be sub folders directly below the folder configured in the above setting for themes, external, and ui.

Web Hosting by mojoPortal Experts Your advertisement here xSQL Software SQL Tools
Form Wizard Pro - Easy Forms and Surveys for mojoPortal