How to create a custom drupal cms from starting

Actually i need to know how and where the page content for each drupal page comes. So i tried to integrate my own custom theme to drupal. In the tutorial they are saying like i need to create a custom folder and copy one of the default theme like garland/pushbutton to that folder. I got it correctly, but when i check the files and functions in these template the functions used to create the template are different. For example in pusbutton theme we don't have template.php but in garland we must have a template.php file to show the content. So i am getting confused, is drupal don't have standered way of or functions or files to create a custom templete? Also how the data comes in each page?

Answers


It is a good practice to copy the existing core theme folder and put inside /sites/all/themes. Each theme in drupal is different from the other. For instance the template.php is used

For all the conditional logic and data processing of the output, there is the template.php file. It is not required, but to keep the .tpl.php files tidy it can be used to hold preprocessors for generating variables before they are merged with the markup inside .tpl.php files.

The only required file involved in creating a theme is .info file.

Learn more about How theme works


Need Your Help

dynamic globals in codeigniter

database codeigniter dynamic global-variables

What is the best practice of having dynamic globals in codeigniter?

pyCharm: safe refactoring information for application on depending code

python refactoring pycharm

If I do refactoring in a library pyCharm does handle all depending applications which are known to the current running pyCharm instance.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.