If Drupal can do anything, why am I having to shovel snow?
—
1 hour 36 min ago
For those of you who are trying to figure out how to place a contact form into a panels layout in Drupal 6.4+, I have found that the old method of:
<?php print contact_site_page(); ?>was only producing a white screen of death. What DID work for placing a site contact form in both Panels and Lightbox2 was to use the PHP filter, and use the following:
<?php
require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
print drupal_get_form('contact_mail_page');
?>Hope it helps!
Comments
contact form & panels
Hi pad,
thanks for the code..
this snippet work, but the form is displayed out of the theme.. could you tell me why?
Cheers Kai
Post new comment