CreatePage.aspx cannot display page layout preview image
I am using a custom site template and functions fine, except that when I get to the CreatePage.aspx page, the preview image is not displayed. When I looked up the properties on that image, it was looking for the image in a location other than the place where it should. For eg: Instead of looking for it at /_catalogs/masterpage/en-US/Preview%20Images/ArticleBodyOnly.png it looks for it at xxx/test/_catalogs/masterpage/en-US/Preview%20Images/ArticleBodyOnly.png where xxx was an external consultant that worked on this site before me and I am new to sharepoint. The only scenario when this doesnt happen is for the DefaultPageLayout.png file. This problem seems to repeat everytime I use this site template. When I open up the sites with these templates on Sharepoint Designer, I can see all the preview images over there. For some reason, the CreatePage.aspx is not looking for the images in this location and looks for it at another location. I am really stuck with this issue, can someone please help me understand why this is happening or help me resolve this? Thanks
October 29th, 2010 4:35pm

Hi, Please go to the publishinglayouts feature elements manifest file (locate at 12\template\features\publishinglayouts\provisionedfiles.xml),check the “PublishingPreviewimage” property; it is the path to URL accessible image file to be displayed when this layout is selected in the listbox when creating a page. For more information, please refer to: http://jamestsai.net/Blog/post/How-to-update-properties-of-an-already-provisioned-and-in-use-page-layout.aspx Hope it helps.Xue-Mei Chang
Free Windows Admin Tool Kit Click here and download it now
November 1st, 2010 2:26am

Make sure that is uses URL which starts with / and it should not start with _catalogs/ Sameer Dhoot My Blog : http://sharemypoint.in/ Did I answer your question? If YES, Mark as Answer. If NO, reply with details to continue dialogue.
November 2nd, 2010 2:00am

Hey.. thanks for the reply The link that you sent, went over my head a little bit. Could you help me decipher it? This might be a little primitive as I ve never written any sharepoint code before. I can understand the reactivation and deactivation, but where do I create the SPFeatureReceiver Class and how do I register it in feature.xml is there an easier way to do this with just configuration and no code changes?
Free Windows Admin Tool Kit Click here and download it now
November 2nd, 2010 11:36am

Hi, You should create a SPFeatureReceiver class library in Visual studio (http://msdn.microsoft.com/en-us/library/f3cye135(VS.90).aspx) And then also need to sign the assembly, go to http://msdn.microsoft.com/en-us/library/ms247123(v=VS.90).aspx for step by step instruction on how to do this. Compile the assembly and add it to the GAC. While in the GAC, right click the assembly, select properties and make a note of the Public Key Token. You'll need to update it on the FEATURE.xml file. For more information, please refer to: http://sharepointdevwiki.com/display/public/How+to+add+a+Feature+Receiver+to+a+Feature Hope it helps. Xue-Mei Chang
November 2nd, 2010 10:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics