Drupal is very famous cms and providing wide range to functionality to build web applications.
While building custom theme for drupal 7 we might have different page templates for different content types, for this we will need to include header, footer and any other file which have common code in page.tpl files.
For this create a directory include or inc in your theme templates folder and place all your common files in this directory like in my case I created header.tpl.inc file and placed header code in it. Now use following code in page template files.
<?php include path_to_theme() . '/templates/inc/header.tpl.inc'; ?> <?php include path_to_theme() . '/templates/inc/footer.tpl.inc'; ?>
Artificial Intelligence is transforming how we work, create, and earn. But most people get stuck…
In today’s fast-paced world, businesses can no longer rely solely on traditional methods to stay…
Add an Addon Domain in GoDaddy with Web Hosting Deluxe (Step-by-Step Guide). If you are…
The ability to create reliable APIs is essential in today's web development environment. I'll show…
The difference between XML that we get in response to any REST API and XML…
I hope you already have WSL2 installed and enabled. So, setting up Apache2 on WSL2…