Thumbnail for Custom Page Type

Brendon McCarthy asked on October 21, 2014 21:47

Webparts have a field called "Thumbnail" that allows you to select an "image" or "font icon class". I'd like to implement this same functionality for a custom Page Type. Can these properties be inherited (or recreated) easily?

Recent Answers


Virgil Carroll answered on October 21, 2014 23:39

When you create a custom Page Type. Go to the General Settings tab and there is a field called Page type icon. Here you can select whether to have it be an image you upload (you need to upload a 16x16 and a 48x48 version) or a Font icon class (which you will need to attach in a stylesheet). You can do this for each page type you create so you can visually see the type in the Page editing system.

Basically the same thing.

0 votesVote for this answer Mark as a Correct answer

Brendon McCarthy answered on October 21, 2014 23:53 (last edited on October 21, 2014 23:53)

Thanks Virgil. However, I'm not trying to assign an icon to the Page Type itself, but to the Pages of a customer Page Type. For example, I have a Page Type called "Resource" and each resource needs its own image or icon (just like Page Types have).

What I was looking for was an out-of-the-box Page Type that implements something similar, but I've yet to find one. I believe there are 3 fields, one for the initial "selector" and one each for the image and font. Depending upon the selection, either field is shown.

0 votesVote for this answer Mark as a Correct answer

Virgil Carroll answered on October 21, 2014 23:56

Ahh I see. Yeah you would not be able to do that out of the box. Your options are really having multiple page types (cloning the original and making the necessary changes) or doing some custom code behind to actually show the correct 'icon' based off what ever selection you wanted to.

When creating a new page type you can inherit fields from another page type, which gives you some abilities to keep the fields consistent and have those variations. Yes I know its probably not ideal, but out of the box its probably as good as you will get.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.