In last lessons while setting content type we learnt, that we can add our fields. Today we will output this fields to the page in our theme There are two essence in page.tpl.php - $page and $node. $page array stores theme regions. Node object store including node...
Tutorials
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...
Drupal 7. Create theme
In this lesson we'll begin to create the theme for our Drupal 7 site. We'll use the template, which we're using while creating template for modx I recommend you to read this article about Drupal 7 theming. You can see the code of this and next lessons on my github...
Drupal 7. Create view and contact form
In last lesson we added some content and installed Views module. Today we will create last posts view for output this view on main page and also we will create contact form View can be created as page or block. If you don't need to output different types of content,...
Drupal 7. Admin panel overview
In last lesson we installed Drupal 7. Today we will discuss key capabilities of admin panel. First of all we will add some pages to our site, then create our custom content type and consider blocks and modules. There are content types in Drupal, allowing you to create...
Drupal 7. How to install
Beginning from this lesson we begin learning Drupal 7. Today we'll consider Drupal installing. They say, Drupal is one of the difficult CMS for learning. Current Drupal version is Drupal 8, but Drupal 7 and Drupal 6 are maintained very good. I will use Drupal 7,...
MODX. Simple snippet. Minishop2
In this lesson we will create simple snippet for output year in the footer and also consider possibility of making e-commerce project on MODX Snippet is php code fragment, which can be included in chunks or templates. Making e-commerce project on MODX is not got...
MODX. getResources snippet
In this lesson we will use great snippet getResource for posts output on main page. getResource allows to make very flexible resources selection.
MODX. TV fields
In this lesson we will talk about TV fields and output headers and background in header with it TV fields are only additional resources fields. They can have different types, for example, textfields, list, file and so on