Grid/List as buttons instead of dropdown list

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi all,

I was wondering if it was possible to change the dropdown List for the 'gridview or listview' selection to two buttons /images that do the same function when clicked..

If it is would someone be able to point me in the right direction?

Cheers
D
11 years ago
d-print wrote:
Hi all,

I was wondering if it was possible to change the dropdown List for the 'gridview or listview' selection to two buttons /images that do the same function when clicked..

If it is would someone be able to point me in the right direction?

Cheers
D


In CategoryTemplate.ProductInGridOrLines.cshtml, there is this section:

@if (Model.PagingFilteringContext.AllowProductViewModeChanging && Model.Products.Count > 0)
        {
            <div class="product-viewmode">
                <span>@T("Categories.ViewMode")</span>
                @Html.DropDownList("products-viewmode", Model.PagingFilteringContext.AvailableViewModes, new { onchange = "setLocation(this.value);" })
            </div>
        }


Change the markup and it should work. Do pay attention to the JS too! :D
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.