Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I just created a page--front.tpl.php for my Drupal 7 installation. As soon as I did and hit refresh, I got a few errors:
Notice: Undefined variable: linked_logo_img in include()
Notice: Undefined variable: linked_site_name in include()
Notice: Undefined variable: main_menu_links in include()
Notice: Undefined variable: secondary_menu_links in include()
What's up with that? I'm using the Ninesixty theme as a base.
I have a project with some content types and lots of fields attached to them. For some of them, it is a bit hard for me to decide if I should use a taxonomy reference or a simple select field. Found some posts on the Internet, but almost all of them do this comparison from a Drupal 6 perspective. There is also a forum post on this issue: http://drupal.org/node/566710. In Drupal 7 however, things have changed a lot, and both, taxonomy and fields gained more power.
I have a field collection with a computed field in it that I would like to have set to the same value as another field in the parent form. The field in the parent form is a single checkbox. In other words when the user checks the box I would like to have the computed field reflect that setting (either as "1" or "yes" or "on"... whatever it really doesn't matter). I don't know PHP but would really appreciate help with how to code this.