47 Actions

How to use JavaScript and CSS in a web part?If I use this code in a custom web part and then add two instances of the web part to the same page, do these calls implicitly prevent redundant additions of the script and CSS to the page, or should I perform some sort of an explicit check?

Order of web parts programmatically added to SharePoint pageI did not yet reverse the order in the code, but just setting zoneIndex = 0 for all of them still placed one web part out of order. I am beginning to suspect there may be a bigger problem with the code. I am going to check some more things and get back to you today. Thanks for your quick responses!

Order of web parts programmatically added to SharePoint pageThat gave me tremendous hope, albeit for only a few moments :-( When I change zoneCounter to use one-based indexing, the fourth webpart inserted via code now shows at the end in the page. Somehow, any web part with zoneIndex = 4 (regardless of zero or one based) is pushed to the last!

All columns getting added to Document content type in migrated siteI tried to replicate this problem with a new library created in MOSS 2007. Actually I don't see this behavior. Maybe user created columns get added to the Document content type, but not fields like Created By, Modified By and Checked Out To. In my case, even those fields are getting added to the Document content type. I can provide the list template based on the migrated library, and you will be able to replicate this problem.