How can i change master page & css files?

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.
10/14/2011 2:22:11 AM
Gravatar
Total Posts 5

How can i change master page & css files?

Hi all.

I am trying to change master page & css files, i.e. modifying the layout.master & style.css.

But other than the image replacement none of the changes reflect on home page.

i've tried to get the style.css my way but no luck.

Is there something wrong with my approach.

 

I've spent 4 days already reading all stuff, but none of the stuff is going my way.

please help....

10/14/2011 9:25:36 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: How can i change master page & css files?

Make sure that you have read the entire skinning documentation here. It will give you a good foundation for getting started. To be able to see the changes that you are making to you CSS you need to turn off the caching. You have a couple of ways to do this.

You can add the following lines to your user.config file to disable the caching. Once you add them you need to touch the web.config to reflect the changes. Once you are done with your changes remeber to set the values back to true for production sites.

<add key="CacheCssOnServer" value="false" />
<add key="CacheCssInBrowser" value="false" />

The second method it to use the admin control panel to disable caching for your session. Goto Administration - Advanced Tools - Design Tools - Cache Tool - Disable CSS Caching

A tool that will be of great help to you is FireBug for Firefox or you can use the development tools built into IE or Chrome. You can use these tools to inspect elements on the page and via what CSS is behind them

10/21/2011 3:58:34 AM
Gravatar
Total Posts 5

Re: How can i change master page & css files?

Hi!!

I appreciate your help.

But i've already done that & it was still not working.

 

Any thing else?

Once again thanks for answer..

:)

10/21/2011 8:04:52 AM
Gravatar
Total Posts 18439

Re: How can i change master page & css files?

Even after you disable caching, the previous CSS may still be cached in your browser.

You need to go away from your site then clear the browser cache then come back to your site. If your site is active in the browser when you clear the browser cache it will not clear it for active sites in the browser.

Then once the cache is cleared it should not cache it while you have caching disabled, but it was already cached in your browser before you changed the settings.

Hope that helps,

Joe

10/21/2011 10:44:42 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: How can i change master page & css files?

Sorry if this is stating the obvious, but if you are making significant changes and seeing no change in the browser (and using different browsers, clearing cache etc) that makes me think wonder whether you are editing the right files. Are you editing the CSS throguh the Administration menu in the web site or direct on the server?  If through admin you cannot get the wrong files, but if on the server it is possible to get confused by the fact that the skins are to be found in two locations. It is the ones inside your site (e.g. \data\sites\1) that you need to edit, not the ones located at a higher level. I only say this because it caught me out when I started mojo'ing.

HTH

10/24/2011 2:44:01 AM
Gravatar
Total Posts 5

Re: How can i change master page & css files?

I am 100% sure i am modifying the right files.

I've read many articles & posts on that.

Clearing the browser by going away from website worked a bit, as Joe suggested but no great relief yet.

But actually i am dealing with the 5 content panes i.e. Left,Center,Right,Top & Bottom.

I want to place my contents like images, slideshows & other  HTML contents in them.

I want to show them as i expect them to display & want to change their margins & widths a bit.

But when i try to do so i got the panes displaced, like, right pane comes under the left & my page goes ugly.

What can i do for that. For this purpose i am modifying some CSS classes in style.config & adding some of the mine & keeping their reference in style.config.

There is one more question, i've observerd that the some of the Div(s) are created dynamically when i place content in panes & some of the CSS classes are automatically applied on them.

Can i control them also???

10/24/2011 8:08:02 AM
Gravatar
Total Posts 18439

Re: How can i change master page & css files?

There is one more question, i've observerd that the some of the Div(s) are created dynamically when i place content in panes & some of the CSS classes are automatically applied on them.

Can i control them also???

You can use those classes to style it, you don't need to control what the class names are just use the ones that are there and apply style rules. Use more complex selectors not just class names.

If you want the alternate panes to always be displayed even when no content instances are in them, see the notes I just added at the bottom of the article More Than 3 Content Panes. The width/height of these panes will also be affected by the size of content inside the panes.

Hope that helps,

Joe

10/31/2011 1:41:10 AM
Gravatar
Total Posts 5

Re: How can i change master page & css files?

hi joe.

your last reply was appreciated.

but i think my major concern is about the positioning my controls & contents.

for example in style.css there are two divs named "art-sheet" & "art-sheet-body" in style.css class.

My <portal:SlidePanel> tag goes under the "art-sheet-body".

No matter what i do in their CSS classes, they never look my way (width for instance).

Then how i am supposed to create my layout? when i use firebug & hover on "art-sheet" div, it covers all the width of page, I think it is the reason that my right pane content is coming under my slide show.

 

How can i get rid of it?

please help.

 

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