In Sharepoint I need to include a preview image for the screen of selecting layout for a new page.
        Posted  
        
            by netadictos
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by netadictos
        
        
        
        Published on 2010-03-23T09:02:15Z
        Indexed on 
            2010/03/23
            11:33 UTC
        
        
        Read the original article
        Hit count: 352
        
In Sharepoint 2007, I have created a layout. As you know when the user creates a page he chooses a layout from a listbox. When you select a different element in the listbox, there is a preview image that changes on the left. I thought this was controlled by the node PublishingPreviewImage in the xml of the layout. I have verified that the image exists in that place.
It is not working.
The code I use is:
<File Path="TituloTextoCtrl.aspx" Url="TituloTextoCtrl.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists ="TRUE">
      <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/titulotextoctrl.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/titulotextoctrl.png" />
            <Property Name="MasterPageDescription" Value="Plantilla Titulo+Texto+Control" />
            <Property Name="ContentType" Value="Titulo+Texto+Control" />
            <Property Name="PublishingAssociatedContentType" Value=";#Vialibre_ContentTypeGeneral;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39005215cca003b74e479baa123eb1dc5702;#" />
        </File>
        © Stack Overflow or respective owner