6

I've created a list definition from a content type in Visual Studio 2010 for SharePoint 2010. They are based off a custom list. When I deploy locally, I see the correct image in View All Site Content for these lists, /_layouts/images/itgen.png.

When I package this and deploy it on our staging environment, the icons are messed up, they are somehow being swapped with PowerPivot icons. I'm a bit perplexed as to how this is happening, relatively minor, but visually annoying. Here is the list template where it is defined but once packaged and deployed, does not have the right icon.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListTemplate
        Name="Flag"
        Type="10002"
        BaseType="0"
        OnQuickLaunch="FALSE"
        SecurityBits="11"
        Sequence="410"
        DisplayName="Flag"
        NoCrawl="TRUE"
        Hidden="TRUE"
        Category="Custom Lists"
        Description="Flagging List Definition"
        Image="/_layouts/images/itgen.png"/>
</Elements>

Anywhere else I can track this down?

Here are a couple of screenshots, this is my dev environment where my cutoms lists show the correct image in the View All Site Content page.
enter image description here

And this is wht View All Site Content looks like when this is packaged and deployed as a feature. Both of these are custom lists and should be displaying the custom list icon, not powerpivot icons.
enter image description here

  • Just out of curiosity, what image is getting loaded if you look at the network activity in the developer tools? – RJ Cuthbertson Dec 19 '13 at 3:27
  • I'll have to check in the morning, View source on the images shows it is the power pivot images for 2 of the 3 lists I provisioned this way. – Eric Alexander Dec 19 '13 at 3:34
  • I see Gets for the wrong images, atomsvc_32_96.png and powerpivot_32_32.png, so I'm not sure where this is getting messed up. – Eric Alexander Dec 19 '13 at 16:13
  • could you please check couple of things? 1) whats the location of images you are seeing? 2) are you images deployed to correct location /_layouts/images/ 3) did you see other than you custom image in the images folder. I am wondering may be your images not deployed into the folder which causing this issue. – Waqas Sarwar MVP Dec 22 '13 at 23:35
  • I'm seeing icons from the _layouts/images/PowerPivot/ directory. I'm not deploying any images with the list, I'm telling it to use the default image for a custom list. – Eric Alexander Jan 6 '14 at 16:13
1

I may have resolved it but it didn't have anything to do with any of the code I created. I needed to redeploy the feature and I looked over the existing featres on the site. I disabled the PowerPivot Feature Integration for Site Collections feature and my custom lists that get created in my feature show the correct icons now.

I don't know why that would make the icons change but it did.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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