Hi Yener,
To make the default view "ListView" you will need to use custom viewsets for the product list module, please login to the admin console, under the templates menu click viewsets, click the actions button next to the "Product List" module and click Copy Viewset, this will create a copy of the MVC view folder in the DNN portals folder, now restart the application for the MVC view locations change.
Select the file "_FilterPanel.cshtml" and click edit from the actions menu, as you see from the code the two buttons does set the scope variable "displayMode" either "gridview" or "listview", any where in this document you can use the ngInit to initialize the value to listview. for example you can add this to the parent div of the buttons like this:
<div class="btn-group" ng-init="list.displayMode = 'listview'">
Regards,
Wael
|
|