Solved

Drupal site - footer info only to appear on Homepage

Posted on 2011-09-09
2
204 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

737 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