Different Scripts on Home page Vs. Internal pages

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
7/8/2011 3:22:17 PM
Gravatar
Total Posts 199

Different Scripts on Home page Vs. Internal pages

Lets say I have a flash video of a person that only walks onto the screen for the home page.  I obviously do not want this effect on the internal pages.  Typically I would solve this issue using a nested master page so I have one for the home and one for the internal.  How do I accomplish this using MOJO as I only see one layout.master?  Can I create more master pages or is there a trick I am missing?

7/8/2011 11:58:37 PM
Gravatar
Total Posts 355
Community ExpertArvixe Web Hosting / mojoPortal Community Liaison
Looking for quality mojoPortal hosting? Try Arvixe

Re: Different Scripts on Home page Vs. Internal pages

Mojoportal allows you to set a specific skin for any page in the site; a solution you might consider is to create a duplicate skin, with your home-page specific code embedded in the .master file, and set the home page to use that skin for the home page only.

Is there a reason not to embed the flash into an HTML module for the home page only?

7/9/2011 6:14:42 AM
Gravatar
Total Posts 18439

Re: Different Scripts on Home page Vs. Internal pages

As IndigoTea said you can assign a different skin to your home page so you could have the Flash only in the master page of the skin used on the home page. If you are concerned about maintaining 2 sets of CSS that is almost the same, you could actually put the CSS in a common location and use it in both skins, see the article Understanding the style.config file which explains how to do that. Each skin folder would still need its own layout.master, theme.skin, favicon etc, but the CSS can come from a common location.

The main benefit of keeping the CSS in the skin folder is for easy redistribution of the skin it is better if it has everything it needs in the same folder so you can just copy the folder to copy the whole skin. But I think for most people designing their own sites redistribution of skins is not a primary concern.

Best,

Joe

7/11/2011 8:20:57 AM
Gravatar
Total Posts 199

Re: Different Scripts on Home page Vs. Internal pages

thank you for the direction, I will try a second skin as I do not think the html feature will allow me to add code to the head tag on the fly.  I was concerned about managing two skins and all of the same css, but I guess if I consolidate this would be a nice solution.  Will there ever be support for additional master pages in the same skin?

7/11/2011 11:45:23 AM
Gravatar
Total Posts 355
Community ExpertArvixe Web Hosting / mojoPortal Community Liaison
Looking for quality mojoPortal hosting? Try Arvixe

Re: Different Scripts on Home page Vs. Internal pages

If you're just wanting an intro "splash", you could also structure your skin to use the 5-panel style, and just have the splash flash in the top panel on the home page.  That would give you the flexibility to change it out "on the fly" if you decide to do so, without having to edit the master. I did something similar for the home page on IndigoTea.com; it also gives me the ability to add a promo banner if it suits me to do so.  

7/12/2011 8:25:55 AM
Gravatar
Total Posts 199

Re: Different Scripts on Home page Vs. Internal pages

I really like this idea, but since I am new to the concept of mojo can you explain to me or lead me to some docs that explain the 5-panel style?  Thank you for all your help so far, this really is a great product and I have tried other cms systems with out much help from the community.

7/12/2011 8:43:29 AM
Gravatar
Total Posts 2065

Re: Different Scripts on Home page Vs. Internal pages

Hi,

See the More Than 3 Content Panels document. It should get you going.

HTH,
Joe D.

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