Reputation: 485
I know, if you want to check the names of the Display Output of the view page then we need to click on the Information Link near by Theme of Advance Theme of the view, it will list all the files.
After clicking on this, it will list.
Display Output : (View Machine name is add_to_cart)
views-view.tpl.php, views-view--add-to-cart.tpl.php, views-view--default.tpl.php, views-view--default.tpl.php, views-view--page.tpl.php, views-view--add-to-cart--page.tpl.php
So, could you please suggest which files should be best for creation of the Display Output template of the view page ?
Upvotes: 0
Views: 113
Reputation: 1205
If you want specific theming to your page display of
add_to_cart
view, then choose to overrideviews-view--add-to-cart--page.tpl.php
.
I'll also want to add the importance of naming convention for templates, so that, next time, you can choose the template name yourself:
add_to_cart
view.default
(master display) of every view.page
of every view.page
of only add_to_cart
view. (the specific suggestions are always last)Note:
Hope this help else comment for queries.
Understanding how default, page comes in template names:
system_1
. So, a view with system_1
display will be overrided using views-view--system-1.tpl.php
. Note: the underscore('_') is replaced with hyphen('-'). The by default view display or master display in a view has a machine name: default
.Upvotes: 1