I create a new theme in Drupal. I need to display a view in custom page but i don’t want to use the region. I need the php code that we add it to the tpl page
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
views_embed_viewwithin your template. The first parameter is the collective name for the Views and the second is the display name.<?php echo views_embed_view('myview', 'block'); ?>