on 06-02-2009 6:21 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.