views:

296

answers:

1

In the Contact module setting, we can set some additional information that appears before the site-wide contact form.

I pasted some html codes including a google map <iframe> into the textarea and saved.

The iframe did not get displayed and I am sure it's filtered by Drupal during an output stage, because in phpmyadmin, I can still see that <iframe>.

How can we add an iframe into the contact page in Drupal 6? Is this possible to tell Drupal not to filter out <iframe> tag? My website is not a critical one and I don't mind turning that off if there is an easy way that you know of.

+1  A: 

Check the input format of your contact form node. If it's set to "Filtered HTML" then that will filter out your <iframe> tag. Set it to either "Full HTML" or "PHP code" to prevent the filtering from occurring.

Brian Showalter
It's generally a bad idea to use the PHP code filter, but using full should work just fine.
googletorp
In the page that allows some additional information input, there is no option to choose whether it's filtered HTML or full HTML.
bobo