rather than customising templates, is there a standard way of just adding a footer of standard text.

i was thinking of using hook_form_alter in a custom module - but how can i just add a standard blob of text.

Comments

matt v.’s picture

Most themes support a "Footer message," which can be set under Administer > Site configuration > Site information. Depending on where you need the message to appear, you may be able to configure a Block to do what you need.

--
Drupal Theme Developer’s Cheat Sheet | 45 Screencasts to Get You Kicking Ass with Drupal

netron’s picture

i found a way to do it by using a block in the footer section.

and then , within "Show block on specific pages" i selected

"Show if the following PHP code returns true"

and here's the PHP code i have in there:

<?
$match==FALSE;
$types==array('invoice'=>1);
if(arg(0) == 'node' && is_numeric(arg(1))) {
$nid=arg(1);
$node=node_load(array('nid'=>$nid));
$type = $node->type;
if(isset($types[$type])) {
$match=TRUE;
}
?>

The block itself contains some standard company footer text (address, tel number etc)
So, when I am viewing or editing my "invoice" custom content type, this block is shown (in the footer).

Change the word "invoice" to apply to your custom content type.

update : just noticed that i wasnt specific enough with my question - it was about adding a footer to a specific content type - sorry about that.