Our customers wish to upload productimages to a specific folder without the hassle of afterwards attaching the image to each product. This works fine when using the productnumber and only one image per product. But the best SEO filename requires a fully description of the product by combining the product name, brand name and if available the variant name eg: "avenue-broadway-xm-citybike-sort-46cm.jpg".
In case of multiple productimages a loop should be available and the filename could look like this:
"avenue-broadway-xm-citybike-sort-46cm.jpg"
"avenue-broadway-xm-citybike-sort-46cm_1.jpg"
"avenue-broadway-xm-citybike-sort-46cm_2.jpg"
"avenue-broadway-xm-citybike-sort-46cm_3.jpg"
Maybe an extension of the "Use alt. images" could do the trick.
http://cl.ly/image/2e1K3I3k3k0F
Pattern:
/{ProductName}-{ProductManufacturer}-{VariantName}_{loopCounter}.jpg
Code:
@{
var imageLoop = GetLoop("loopCounter")
if( imageLoop.Any() ) {
<ul class="some-slider">
@foreach( var slide in imageLoop ) {
<li><img src="@slide.Url" alt="@slide.Name"></li>
}
</ul>
}
}
Best regards
Jakob Westhausen