Reputation: 6963
I am trying to develop everything in sharepoint as features so I can easily deploy to test and live sites without having to do any manual steps.
I can deploy my master page okay, and though currently i have to switch it on by hand I am confident I can automate that in the future.
What I am having difficulty is getting a CSS file to match up with it. I have created the file, and I think i am doing the right thing so it is deployed in the sharepoint install, but I cannot work out how to link it to my Master Page.
There must be a right way of doing this but I cannot find it!
Upvotes: 2
Views: 4236
Reputation: 544
I believe you are looking for the <SharePoint:CssLink> tag. The link below has quite a bit of detail about it (among other things):
This site is also a good one to take a look at, since Heather Solomon is the SharePoint Branding Queen: http://www.heathersolomon.com/blog/archive/2006/10/27/sp07cssoptions.aspx
Upvotes: 3