a folder for the Stylesheets

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/26/2008 6:01:48 AM
Gravatar
Total Posts 7

a folder for the Stylesheets

Sorry, me english is bad...

I´m new here and this is my first try with the mojoportal.

I wish, i can creat a folder with the name "styles" in the directory "...data/sites/1/skins/[Skinname]/" and includ all .css-Files.

I have made a function in der layout.master.cs to override the StyleSheet.LiteralStyleSheetLink but this is bad code :-(

Sample (layout.master.cs):
private string GetNewStylePath(StyleSheet stylesheet, string StyleSheetFolder)
{
string newText = ("");
string[] array = stylesheet.LiteralStyleSheetLink.Text.Split('>');

foreach (string str in array)
{
if (str != "")
{
newText += (str.Insert((str.Substring(0, str.IndexOf(".css"))).LastIndexOf("/"), ("/" + StyleSheetFolder)) + ">");
}
}

return newText;
}

 

What can i do?

1/27/2008 3:09:51 AM
Gravatar
Total Posts 550

Re: a folder for the Stylesheets

Hi thomas3577

Please explain what is the purpose of this code? I don't know what you want to do.

A

Thanks.

1/27/2008 6:32:04 AM
Gravatar
Total Posts 18439

Re: a folder for the Stylesheets

My recommendation is don't try to change things in the core of mojoportal. If you do that you are forking the code and it will be difficult for you to get upgrades and bug fixes in the future. Of course nothing forces you to follow my advice but you can't expect support from me if you change the architecture.

Better to leave the core css files in the root of the skin folder. If you want to include additional stylesheets you can use @import, see inside the style.css for example syntax.

Joe

1/29/2008 2:36:28 PM
Gravatar
Total Posts 7

Re: a folder for the Stylesheets

ok, i have understand...

This is my first try to create my own skin. Ok, i have copy a exist skin and have modified :-)
http://green.klickflupp.ch

The Mojoportal is great! :-)

 

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