Dynamically changing skins

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.
5/4/2011 3:49:45 PM
Gravatar
Total Posts 167

Dynamically changing skins

I would like a user to switch between two skins to decided on what look and feel they would prefer. In non-mojoportal sites I would do this with a bit of javascript as per http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm

As the styles are kept in the skins has anyone come across a way of doing this in mojoportal. I don't think themeroller is the answer (or is it?).

I realise I could give the user admin access to go and change the site settings, but would prefer not to do that.

 

5/5/2011 2:33:58 AM
Gravatar
Total Posts 108
Community Expert

Re: Dynamically changing skins

Hi maybe you can use the jQueryUI ThemeRoller, see more info in this link

http://www.mojoportal.com/mojoportal-and-jqueryui-themeroller.aspx

 

5/5/2011 3:34:11 AM
Gravatar
Total Posts 167

Re: Dynamically changing skins

As far as I gather the themeroller manages the jqueryui settings.

I initially thought that this was for just the Juery features, but after using the demo realise it is more than this as site colours can also be controlled.

That being said, I still don't think it is the solution I am looking for, I was looking for this to change the Skins created rather than the jquery them.

If there is no way of doing this can my new skin be set as a Jquery theme.

 

5/5/2011 6:19:32 AM
Gravatar
Total Posts 18439

Re: Dynamically changing skins

You can enable per user skins from Site Settings and then users can try any of the available skins in the site.

We don't currently have the preview link there like we do in Site Settings, but I will add a wish list item for that in our project tracker.

Per user skins is not going to work well if you are using .NET 3.5 under Medium Trust because of the way the theme.skin files can't be loaded from the skin folder in that configuration. As long as you have either Full Trust or .NET 4 hosting it should work ok.

Best,

Joe

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