1

First of all I am overriding the default footer template with my own using region--footer.tpl.php. In the footer I need to display the fields I have in a content type named 'footer'. Can anyone help me with this?

  • fast and dirty? – Paul Bönisch Dec 23 '16 at 7:32
  • yeah.....i need the fields seperately so i can hold each field in seperate variables using PHP. – Abdallah Boodhun Dec 23 '16 at 7:45
1

Like I said, fast and dirty:

$nid = XXX;
$node = node_load($nid);
print check_plain($node->field_name['und'][0]['value']);

Put this into your Template. I assume your field is not translated.

  • Cool thanks @Benone_ its working...I can have leave from work for christmas now :P lol .......I will ask Santa to give u a big gift :P – Abdallah Boodhun Dec 23 '16 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.