how to set image which is in images folder of the project to newPage.ListItem[FieldId.PublishingPageImage] = image in the folder;
Will the image get loaded to provisioned site when a site is provisioned?
|
how to set image which is in images folder of the project to Will the image get loaded to provisioned site when a site is provisioned? |
|||||||||||
|
|
You'll need to have the image already uploaded somewhere on your site. You can do this manually or if you have the image in a VS project, you can deploy it with a module. Then set the URL for your publishing image field
|
|||||||||||
|
|
If you add If you want an image deployed to another location (not TEMPLATE\IMAGES), you can create a module and add your image to that module. This will cause Visual Studio to add a from/to entry to the module's element manifest. For example if you wanted the image to go into the Style Library of your site, it would look like this:
|
|||||||
|