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.
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.
Hi Joe,
In my custom skin folder,i added a .js File in Layout.master ..u mentioned like,
<Scripts> <asp:ScriptReference Path="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" /> <asp:ScriptReference Path="~/Data/Sites/1/skins/artisteer-24headermenu4/jquery.hoverIntent.minified.js" /> </Scripts>
but it doesn't working...so if there is any other way for adding custom .js files...please provide the solution to this problem.
Thanks & Regards
Ramakrishna Thota.
Hi,
I'm using the latest verison of mojoPortal and I include custom js files like this;
In my own copy of layout.master in my custom skin folder, I have the following lines in the <head>;
<portal:ScriptLoader id="ScriptLoader1" runat="server" /> <portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="my-custom-script.js" />
This ensures that the custom js file is loaded correctly from your custom skin folder. Obviously you can add as many custom scripts as required.
Best Regards,
Vince.
HI,
Just i follow above pattern....But it is also not working...
<portal:SkinFolderScript ID="SkinFolderScript1" runat="server" ScriptFileName="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" /> <portal:SkinFolderScript ID="SkinFolderScript2" runat="server" ScriptFileName="jquery.hoverIntent.minified.js" />
The script loader is designed to load custom scripts from your custom skin directory;
my-mojoPortal-web-root/Data/Sites/1/skins/my-custom-skin/my-custom-script.js
Just as a test, ensure that your skin folder is active by calling a single custom script from layout.master.
Also have a look at some of the excellent documentation written by Joe.
http://www.mojoportal.com/self-hosting-jquery-and-jquery-ui-files.aspx
http://www.mojoportal.com/skinning-overview.aspx
You should not load jQuery since we already include it, by adding it yourself it will be loaded twice. Also we are already using a newer version of jQuery than 1.3.
Best,
Joe
i edited mojoportal skin and customize my color for menu in stylemenu.css but two hours menu style are working correctly. Afterwards sometime menu style is not applied. What is the problem? i had an urgent. Please reply as soon as possible.
Hi Sugesh,
Firstly use Firebug in Firefox or Tools --> developer tools in Google Chrome, right click on a menu item and select "Inspect Element". This will show you which styles are being applied to the menu. It may be that you have overwritten the menu styles elsewhere.
It sounds like you have not disabled the CSS cache for the site. Please see the "Overview/Introduction" article in the Skinning Documentation.
HTH, Joe D.