I use colorbox en colorbox-node to show the content of a node but I don't want people to access the node page for that content type.
How can I disable the node's detailpage and still access all the content in colorbox-node?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI use colorbox en colorbox-node to show the content of a node but I don't want people to access the node page for that content type.
How can I disable the node's detailpage and still access all the content in colorbox-node?
In node.tpl.php you can test if node is accessed directly, and if so - redirect him to page with the same node inside colorbox. Or any other page, of course.
Check for the "view mode" in your node template.
$view_mode: View mode; for example, "full", "teaser", "colorbox".