Drupal. Create theme. Output main menu and page main content

Home » Tutorials » CMS » Drupal. Create theme. Output main menu and page main content

In last lesson we began to create theme for our Drupal 7 web site. Today we will output main menu and main page content

First of all we will create page.tpl.php file. It will contain page template.
There are available several variables in this file. One of them is $page. $page is array of current theme regions (sections). It always has one required region – content. It needs us to show main page content.
There are several ways to output main menu. In this tutorial I used hook for transforming main menu html code.

Подписаться на рассылку

Будьте в курсе - получайте последние статьи на свой email

Ваша подписка успешно оформлена

Pin It on Pinterest

Share This