Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to add a web part property to every web part (SharePoint 2010), including OOTB web parts. Essentially I want to add a header color option to the appearance section of the web part tool pane. At first glance I do not think this will be possible.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

By "add a property" you mean configure it? - If that is the case it should be possible. If the answer is rather NOT, but actually "extending" the WebPart definition with a NEW property, then you could make sure your own web parts use the same base WebPart.

And not for the OOBT web parts, unless you build Control Adapters and as soon as they will load you could insert your piece of code.

Hope it helps, C:\Marius

share|improve this answer
1  
No I meant actually add it as a configurable option. So maybe under Chrome in Appearance it would have Title Color. I know I could add it to any custom web parts and of course I do need it for all of them. Ill have to take a peak at the control adapters thanks. –  Cory Apr 23 '12 at 14:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.