Solved

Drupal site - footer info only to appear on Homepage

Posted on 2011-09-09
2
206 Views
Last Modified: 2012-05-12
I have a drupal site with some text listed in the footer of the page.tpl.php template.  I only want this information to appear on the home page.  Is there a little snippet of php code I can use to make this happen?
0
Comment
Question by:livewirewebsolutions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:boon86
ID: 36512863
The theme should have a footer region. Drupal 5 allows you to have as many regions (placed anywhere you want) as you want. You can put blocks in the footer. So, delete whatever html you have in the footer and create a couple of blocks with the footer contents you want, setting them to appear on whatever pages you want.

hope that help
0
 
LVL 16

Accepted Solution

by:
HagayMandel earned 250 total points
ID: 36513886
Create a block that contains the text. (In /admin/build/block/add )
In blocks (/admin/build/block), place this block you have created in the footer region.
In the block configuration (the "configure" link aside the block item),  under "Show block on specific pages:", insert  <front>.
The block will be displayed in the footer ONLY in the home page.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question