cancel
Showing results for 
Search instead for 
Did you mean: 

Default 'No Image Available' image file if none found for a product

Former Member
0 Kudos

I may be wrong but I don't think webtools comes with a facility to automatically substitute a 'default' image ' no image available' when the product image does not exist. Please correct me on this!

I have therefore tried to code up a method which populates a default image in this case but so far without success because of the hierarchy of the page generation process.

[the following would function fine normally but does not work at the correct point in the page lifecycle

this.imgpart.ImageUrl = _bp.AssetsPath.ToString() + "catalog/parts/noimage.gif ]

Incidentally I have noticed that if you wish to create additional links to files other than images in the product media table the hyperlinks fail unless the product image exists so there is a double reason to want to ensure that all products have an image file.

Does anyone have any suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

There is no image that comes with Web tools for items that do not have an image assigned.

You could simply create one called "blank.jpg" then populate all the items in the partsmaster table that do not have a value for MMImage. Then when you find an image it will overwrite your "blank.jpg" in the db.

You can have additional media that is not images, they just have to be in the assets/catalog/parts folder, or use the entire URL

Former Member
0 Kudos

Ok - in summary then there is no functionality for using a default 'no image available' file, the resolution is either code ( which I can't get to work yet ) or SQL.

I do think that this would be a useful addition as it is very common on the web