masterpage and CSS issues after upgrade to 3.3.9.0

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.
7/20/2012 1:06:08 PM
Gravatar
Total Posts 199

masterpage and CSS issues after upgrade to 3.3.9.0

Yesterday I developed a custom skin as I always do using the previous version and my same code as always.  I then upgraded and installed my skin into the new version and it seems to run fine in the browser.

When I am working with the master page the layout is all broke in design view as if it is not following my css.  I also tried to save the master page and keep getting an error saying the master page does not have any content regions defined, but I can see the regions in the code. I am using the consolidated CSS approach.

Just very strange as the site runs fine in the browser, but all the issues so far seem to be my development environment.

I do have old versions running and I can open them up in my dev environment and they look and work fine.

----------------------------

Also I want to add that my IDE is picking up HTML 5 errors in the code and underlining a bunch of portal tags like the following.
<portal:IEStyleIncludes
<portal:Favicon
<portal:ScriptLoader
<asp:ScriptManager
<portal:WelcomeMessage

This did not happen in the previous version as I compared the code and no errors present.

---------------------------------

Any ideas?

 

 

7/20/2012 1:43:43 PM
Gravatar
Total Posts 18439

Re: masterpage and CSS issues after upgrade to 3.3.9.0

Sorry but I can't help with that.

1. VS design view is not very useful, it has never used the css from a site specific skin because at design time there is no sitesettings or http context and it cannot load css from the correct skin folder at design time, it can only do that at runtime when there is an httpcontext and sitesettings can be loaded and the code decides where to load the css files and theme and master page from based on site settings etc.

I recommend use the web browser for seeing the design not the VS designer, I only ever use source view in VS myself because the designer in VS is not very useful for me. But that doesn't mean to run it in the debugger for designing, that is way too cumbersome and slow. What I do is right click the /Default.aspx file and choose view in browser which will load the site in the browser using the VS web server (or IIS if you have it configured that way) without launching the debugger so it is much faster.

2. I can't promise the designer works, I don't use it myself because it is basically useless in mojoPortal due in part to the way we structure the solution and choices we have made about how to load skins at runtime to support multiple sites.

3. I have no idea why it works for you without errors in the designer for some skins and not others and have no way to troubleshoot that.

4. Lots of user settings in VS can be a factor such as whether you have html 5 validation enabled or xhtml etc. VS really should not treat server controls like raw markup (for validation purposes) and I don't know why it does that. I know that sometimes it doesn't recognize things right away, VS is a big beast and it runs lots of things on background threads and builds up a cache of items for intellisense that affect those errors in design view and those little underline squigles in source view but the squigles go away later after vs has built up all its internal object cache.

5. When you say you upgraded mojoPortal to 2.3.9.0 it sounds to me like you are using the pre-compiled release files in VS not the mojoPortal source code, the pre-compiled release files are not really intended for use in VS, they are meant for production deployment.

Hope that helps,

Joe

7/20/2012 3:19:09 PM
Gravatar
Total Posts 199

Re: masterpage and CSS issues after upgrade to 3.3.9.0

Joe I really do appreciate the direction here and I know this is a grey area that you cannot help with, but I wanted to clarify:

1.) the previous version rendered all my skins perfectly in design view (the compiled version).

2.) the new version does not rendered quite as well, but it does render ok with strange HTML5 errors (the compiled version)

This is no big deal, take care.

 

 

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