none
Content Type Icon

    Question

  • How do you customize the icon for a custom content type? The content type I have to create doesnt use a template so it cant inherit any icon from that
    Tuesday, July 07, 2009 8:39 PM

Answers

  • You can associate an icon to Features, but I dont think you can do it for Content Types.

    Where exactly you want to customize the icon for this content type? In a document library? Something like this ?
    Regards,
    Chakkaradeep

    Twitter: http://twitter.com/chakkaradeep
    Blog: http://www.chakkaradeep.com
    Tuesday, July 07, 2009 9:00 PM
  • If you do make sure you have backups of the js files.  Most links in SharePoint are added using CustomActions I'm just exploring the possibility of add a customaction to the new menu with an imageurl and specifying the url for the new form.

    Had a look at http://msdn.microsoft.com/en-us/library/ms473643.aspx and found this

    <!-- Document Library Toolbar New Menu Dropdown -->
      <CustomAction Id="UserInterfaceCustomActions.DocLibNewToolbar"
        RegistrationType="List"
        RegistrationId="101"
        GroupId="NewMenu"
        Rights="ManagePermissions"
        Location="Microsoft.SharePoint.StandardMenu"
        Sequence="1000"
        Title="MY DOCLIB NEW MENU TOOLBAR BUTTON">
        <UrlAction Url="/_layouts/CustomActionsHello.aspx?NewMenu"/>
      </CustomAction>

    You need to change the RegistrationId to 100 and specify the ImageUrl property, for example: ImageUrl="/_layouts/images/custom_icon.gif"

    Would be worth trying before you make anymore changes to the javascript.

    Dave
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Wednesday, July 08, 2009 4:19 PM

All replies

  • You can associate an icon to Features, but I dont think you can do it for Content Types.

    Where exactly you want to customize the icon for this content type? In a document library? Something like this ?
    Regards,
    Chakkaradeep

    Twitter: http://twitter.com/chakkaradeep
    Blog: http://www.chakkaradeep.com
    Tuesday, July 07, 2009 9:00 PM
  • Yeah, something exactly like that, but I cant rely on a template

    Wednesday, July 08, 2009 2:17 PM
  • I looked into this when I saw your question, but after research could only see that it was pulled through based on the extension of the document template.  If you don't have a template I can't see how you can change it.
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Wednesday, July 08, 2009 2:26 PM
  • Maybe I can butcher CORE.js some more? (or CUSTOMCORE.js)
    Wednesday, July 08, 2009 3:51 PM
  • If you do make sure you have backups of the js files.  Most links in SharePoint are added using CustomActions I'm just exploring the possibility of add a customaction to the new menu with an imageurl and specifying the url for the new form.

    Had a look at http://msdn.microsoft.com/en-us/library/ms473643.aspx and found this

    <!-- Document Library Toolbar New Menu Dropdown -->
      <CustomAction Id="UserInterfaceCustomActions.DocLibNewToolbar"
        RegistrationType="List"
        RegistrationId="101"
        GroupId="NewMenu"
        Rights="ManagePermissions"
        Location="Microsoft.SharePoint.StandardMenu"
        Sequence="1000"
        Title="MY DOCLIB NEW MENU TOOLBAR BUTTON">
        <UrlAction Url="/_layouts/CustomActionsHello.aspx?NewMenu"/>
      </CustomAction>

    You need to change the RegistrationId to 100 and specify the ImageUrl property, for example: ImageUrl="/_layouts/images/custom_icon.gif"

    Would be worth trying before you make anymore changes to the javascript.

    Dave
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Wednesday, July 08, 2009 4:19 PM