I am working with V2.60
There is this call in index.cshtml:
@Html.Action("HomepageProducts", "Catalog")
and there is the following Method in CatalogController.cs
[ChildActionOnly]
public ActionResult HomepageProducts(int? productThumbPictureSize)
{
var model = new HomePageProductsModel()
{
UseSmallProductBox = _catalogSettings.UseSmallProductBoxOnHomePage
};
model.Products = PrepareProductOverviewModels(_productService.GetAllProductsDisplayedOnHomePage(),
!_catalogSettings.UseSmallProductBoxOnHomePage, true, productThumbPictureSize)
.ToList();
return PartialView(model);
}
Questions:
1- How can I pass the parameter productThumbPictureSize to the HomePageProducts method from the Index.cshtml
2- In the event that I am able to pass the parameter, would I be able to pass any int size and get the right image or the system creates the thumbnail at the moment of the image upload and therefore I will not get any image?
Please advise.
Many thanks.