Drupal Answers Asked by hkguile on February 21, 2021
I want to create a views for overriding the node page for specific content. For example, when I click the link of a node in a list page, by default , it will go to the node page (e.g node/1), but I want to display a views page, so I can customize the views by views rather than customize the display in content type.
How can I do that?
Create a views of content, set path of it to something like mynode/%(or what you want(yourpath/%)), add contextual filter Nid, set default value Get Content ID from Url,and then customize views fields with what you want.
This link can help you about how to pass Nid to views
Answered by Yuseferi on February 21, 2021
2 Asked on March 2, 2021 by deinqwertz
1 Asked on February 25, 2021 by plambre
1 Asked on February 21, 2021 by hkguile
1 Asked on February 21, 2021 by bkudrle
1 Asked on February 18, 2021 by chris-riddell
0 Asked on February 17, 2021 by maxo
2 Asked on February 15, 2021 by acanana
3 Asked on February 13, 2021 by saidbakr
1 Asked on February 12, 2021 by athakhan
1 Asked on February 11, 2021
1 Asked on February 8, 2021 by dupls
1 Asked on February 7, 2021 by leelandra
2 Asked on February 6, 2021 by quest
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP