blog.easyciel.net author="Patrick Rabian" about="c#, sharepoint, biztalk, team system resources" more="news, samples, tips for .NET world's developers !"

Problem with ‘AlternateCSS’ attribute of ‘Project’ (ONET.XML)

Tuesday, 24 January 2006 15:38 by prabian

If you are working with site definition in Sharepoint, maybee you would like to change the CSS style. In the Sharepoint documentation, it is specified the add ‘AlternateCSS’ attribute in the main tag ’Project’ of the ONET.XML.
So, as I tried and NOTHING changed !

When you look at ‘default.aspx’ root file in your site definition folder, you will find :

<Link REL=”stylesheet” Type=”text/css” href=”/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/styles/ows.css” mce_href=”/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/styles/ows.css” >

….whereas, in an administrator page as ’settings.aspx’ (from _layouts/….), you will find something like this (and it works) :

<SharePoint:CssLink DefaultUrl=”/_layouts/<%=System.Threading.Thread.CurrentThread.CurrentUICulture.LCID%>/styles/ows.css” runat=”server”/>

So, a solution is to replace the first version with the second in all files from site definition’s hierarchy (101 files should be updated for a total of 141).

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   SharePoint
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 7. 2009 11:36