locked
Deploy images in 12\Template\images folder RRS feed

  • Question

  • Hi want to create a WSP solution  with wsp builder. when i try to create a solution through wsp builder it automatically create a 12Hive folder that include feature ,masterpages folder and all. and i used some images in style sheet .once i deploy project it creating wsp but when i add Created WSP through addsolution command it working fine but images are not displaying.
    once i add these images in 12\Template\Images\ABC folder (paste all images in ABC folder) then only images are dispalying. it can be done thropugh manual process.
    so my problem is i don't wan to place these images in images folder as a manula process.
    once i deploy this WSP images will automatically create one folder with the name ABC and paste all these images in ABC folder . how can i do this one. can anyone plz help me
    Monday, April 6, 2009 10:02 AM

Answers

  • Hello,

    actually, your issue is quite strange. I just tried to do this and it works well. I created a new WSP Builder project, then I created a folder TEMPLATE in the 12 folder of my solution, an IMAGES folder in TEMPLATE folder and a TEST folder in the IMAGES folder. When I build and deploy the WSP, the TEST folder is well created in the 12\TEMPLATE\IMAGES folder and it contains my picture. Do you have the last version of WSP Builder ?
    http://www.areaprog.com
    Monday, April 6, 2009 11:14 AM
  • Check the URL which you specified behind the Image. It should be like this _layouts/images/ABC/Image.jpeg

    And, Check the spelling which you specified for Image and Folder in the WSP file and in the URL of the Image.

    Otherwise, Sebastien's method is 100% fine. I've also developed wsp file through WSP Builder so many times and it's working fine.


    --- Regards, Sohaib Khan | Software Engineer - MOSS 2007
    Monday, April 6, 2009 12:16 PM

All replies

  • Can you give me a little more information on how your project is organised?

    Do you have a 12 -- Template -- Images folder within your solution ?

    If so make sure to right click the images and say include in project
    Monday, April 6, 2009 11:10 AM
  • Hello,

    actually, your issue is quite strange. I just tried to do this and it works well. I created a new WSP Builder project, then I created a folder TEMPLATE in the 12 folder of my solution, an IMAGES folder in TEMPLATE folder and a TEST folder in the IMAGES folder. When I build and deploy the WSP, the TEST folder is well created in the 12\TEMPLATE\IMAGES folder and it contains my picture. Do you have the last version of WSP Builder ?
    http://www.areaprog.com
    Monday, April 6, 2009 11:14 AM
  • Check the URL which you specified behind the Image. It should be like this _layouts/images/ABC/Image.jpeg

    And, Check the spelling which you specified for Image and Folder in the WSP file and in the URL of the Image.

    Otherwise, Sebastien's method is 100% fine. I've also developed wsp file through WSP Builder so many times and it's working fine.


    --- Regards, Sohaib Khan | Software Engineer - MOSS 2007
    Monday, April 6, 2009 12:16 PM