Right. DisplayName it is then. :) So now I have my Page Head control available right where I want it. The only problem is that the content doesn't get added to the AdditionalPageHead delegate once published.[cid:[email protected]] I'm getting "The type is not registered as safe" in the logs. The SafeControl entry for the assembly is present. Failed to create a control from assembly ...: The control with assembly name '...' class name '...PageHead' is not allowed for web at URL 'http//...'. The type is not registered as safe. What is an "Empty SharePoint Element" and how do I go about creating one in VS 2005?? From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone Sent: Tuesday, 5 July 2011 10:52 AM To: ozMOSS Subject: RE: Custom Edit Control using AdditionalPageHead delegate
Can I ask if the following uses the internal or display name? Or is better to reference them by ID? SPContentTypeId pageCT = SPContext.Current.Web.ContentTypes["CEO Page Head"] PageHead = SPContext.Current.ListItem.Fields["PageHead"] From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone Sent: Tuesday, 5 July 2011 10:28 AM To: ozMOSS ([email protected]) Subject: Custom Edit Control using AdditionalPageHead delegate Hi all, I want to add a textbox to the Edit view for publishing pages that then adds the content to the page head when published. This is to allow per page scripting when required. I've been using this 2010 example which doesn't require any modification of the masterpage but can't work out what's required to do the same for 2007. No idea what this empty module is or how/why he adds the safe control entry to its properties. http://blog.concurrency.com/sharepoint/sharepoint-2010-custom-fields-editor-control-in-page-edit-mode/ I've created my feature that includes the custom content type, field definition (Note), and control code but I'm not getting the binding. :( Do I need to create en empty controltemplate that references my assembly? Can anyone offer the best approach? Thanks, Paul
<<inline: image003.jpg>>
_______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
