Skip to main content
added 60 characters in body
Source Link
Max
  • 1
  • 1

I created a view for my content, where fields are displayed as a page. Scanning the source code, I noticed it uses the html--default--2.html.twig template.

I created a new custom template. how can I set that template for all the view pages, instead of the default template? I need to edit the whole page, including header and footer.

Notice that I've read this and this about custom templates for view. I've tried to rename my custom template views-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing happens. My view page is still using the default template.

I created a view for my content, where fields are displayed as a page. Scanning the source code, I noticed it uses the html--default--2.html.twig template.

I created a new custom template. how can I set that template for all the view pages, instead of the default template?

Notice that I've read this and this about custom templates for view. I've tried to rename my custom template views-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing happens. My view page is still using the default template.

I created a view for my content, where fields are displayed as a page. Scanning the source code, I noticed it uses the html--default--2.html.twig template.

I created a new custom template. how can I set that template for all the view pages, instead of the default template? I need to edit the whole page, including header and footer.

Notice that I've read this and this about custom templates for view. I've tried to rename my custom template views-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing happens. My view page is still using the default template.

improved grammar and spelling
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

How can I "tell" Drupal whichset the template to use for a view page display?

I'm using a template in which Default template is named

html--default--2.html.twig

I createcreated a view for my content, it displayswhere fields are displayed as a page. Scanning the source code, I noticenoticed it uses the html--default--2.html.twig template.

html--default--2.html.twig

Now I createcreated a new custom template:. how can I "tell" Drupal to use my customset that template for all the view pages, instead of Defaultthe default template?

Notice that I've read this and this about custom templatetemplates for view. I've tried to rename my custom template in views-view--page.html.twigviews-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates/core/modules/views/templates, flushed cache, but nothing still happens. My view page is still using the default template.

How can I "tell" Drupal which template to use for view page display?

I'm using a template in which Default template is named

html--default--2.html.twig

I create a view for my content, it displays fields as a page. Scanning the source code, I notice it uses the template

html--default--2.html.twig

Now I create a new custom template: how can I "tell" Drupal to use my custom template for all view pages, instead of Default template?

Notice that I've read this and this about custom template for view. I've tried to rename my custom template in views-view--page.html.twig and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing still happens. My view page is still using default template.

How can I set the template to use for a view page display?

I created a view for my content, where fields are displayed as a page. Scanning the source code, I noticed it uses the html--default--2.html.twig template.

I created a new custom template. how can I set that template for all the view pages, instead of the default template?

Notice that I've read this and this about custom templates for view. I've tried to rename my custom template views-view--page.html.twig, and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing happens. My view page is still using the default template.

deleted 2 characters in body; edited title
Source Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

D8: How can I "tell" Drupal which template to use for view page display?

I'm using a template in which Default template is named

html--default--2.html.twig

html--default--2.html.twig

I create a view for my content, it displays fields as a page. Scanning the source code, I notice it uses the template

html--default--2.html.twig

html--default--2.html.twig

Now I create a new custom template: how can I "tell" Drupal to use my custom template for all view pages, instead of Default template?

Notice that I've read this and this about custom template for view. I've tried to rename my custom template in "views-view--page.html.twig"views-view--page.html.twig and put it in my template folder, and also in /core/modules/views/templates/core/modules/views/templates, flushed cache, but nothing still happens. My view page is still using default template.

D8: How can I "tell" Drupal which template to use for view page display?

I'm using a template in which Default template is named

html--default--2.html.twig

I create a view for my content, it displays fields as a page. Scanning the source code, I notice it uses the template

html--default--2.html.twig

Now I create a new custom template: how can I "tell" Drupal to use my custom template for all view pages, instead of Default template?

Notice that I've read this and this about custom template for view. I've tried to rename my custom template in "views-view--page.html.twig" and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing still happens. My view page is still using default template.

How can I "tell" Drupal which template to use for view page display?

I'm using a template in which Default template is named

html--default--2.html.twig

I create a view for my content, it displays fields as a page. Scanning the source code, I notice it uses the template

html--default--2.html.twig

Now I create a new custom template: how can I "tell" Drupal to use my custom template for all view pages, instead of Default template?

Notice that I've read this and this about custom template for view. I've tried to rename my custom template in views-view--page.html.twig and put it in my template folder, and also in /core/modules/views/templates, flushed cache, but nothing still happens. My view page is still using default template.

edited title
Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91
Loading
added 17 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91
Loading
Source Link
Max
  • 1
  • 1
Loading