Stylesheet for features

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/9/2007 3:30:32 AM
Gravatar
Total Posts 46

Stylesheet for features

Hi Joe,
I’m looking at adding a stylesheet for the Survey Feature and I’m a bit confused how to go about it. I can see the SetupCss method that you have used in some of the blog pages but these access the skin folders which doesn’t seem right in this scenario. Would I copy the stylesheet in the build event and if so, where would I copy it to? I would be interested to hear your recommendations. Would it be possible to have a similar method to SetupCss in the mojoPageBase?
Cheers
Rob

10/9/2007 7:36:27 AM
Gravatar
Total Posts 18439

Re: Stylesheet for features

Hi Rob,

Feature specific style sheets are problematic for the very reason you mention. I haven't really found a smooth plan for copying them to skins and in theory they probably are different for different skins.

My recommendations are:

1. avoid using a feature specific stylesheet if possible. Its really only needed if a lot of additional css is needed to style the feature and in this case putting it in a separate file helps keep the main css file smaller. Thats the only reason for doing it. Best if you can manage to style it using existing css class names that are already in use commonly accross features. The idea of skins is to have a consistent look across features so making use of existing classes helps with this.

2. if the feature does require additional css classes note what they are in the documentation or a readme file but just pick a skin to work with until the feature is mostly complete then review how it looks in other skins. Ultimately when you get the survey feature completed I will help go through and make all the skins that ship with mojoPortal work with it and I will implement the other data layers as well if you don't end up doing them yourself.

Cheers,

Joe

10/9/2007 10:03:44 AM
Gravatar
Total Posts 46

Re: Stylesheet for features

 

Hi Joe,
If there had been an easy way to do this I may have gone that route but I think I'll stick with option 1 and see where that takes me, more than likely I will find everything I need in the existing stylesheets. I'll definitely have a pop at creating the additional data layers but I'll no doubt have a few questions along the way.
Cheers
Rob

 

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