Drupal, music, food, coffee ...

Simple Hack for Styling the Drupal Contact Page

Images on the contact page! Always tricky getting the Drupal contact page to look like the rest of the site, but I found a nice workaround for simple themes.

Making a site recently, I ran into the problem (again) that the Drupal contact page is a distinct entity within the CMS and not a node - there are good reasons for this; it has lots of neat little things built into it like the flood control (how many messages user may submit in an hour), multiple contact categories and so on all built in!

Since it is not a node and not generated by a tpl.php file, you can't style it or change it radically without hacking core ... "Do we hack core to fix our pathetic little styling issues, kids?" ... NO!

I got around this with a couple of tiny little tricks (you have to have IMCE installed and activated for images for this to work):
- I rolled my own template and css for the entire site (more on this coming soon) so the base styling (background, fonts, etc.) was already there.
- After entering all the contact information and categories into the form here: YOUR-DRUPAL-URL-HERE/admin/build/contact, I saved it and went to an existing node where I generated an image tag using IMCE and cut it out onto the clipboard (IMCE won't work in the contact form control area!). In YOUR-DRUPAL-URL-HERE/admin/build/contact/settings, I then pasted the image where I wanted it in the text! Done. Image on the contact page!
- Of course a little more can be done with CSS and the selectors you can find in the contact form output and/or any selectors you care to add in the "settings" area.

Footnote: all other images on the site are styled by a modified SwFIR implementation with jQuery, but since I *really* can't put javascript into the contact form, I modified this one in Photoshop to look more or less like the others. More on the on-the-fly styling and other aspects of this site coming soon ...

Comments

It is important to groom your

It is important to groom your contact page to attract visitors. I am really impressed by this lesson on simple hack for styling the drupal contact page. I appreciate the hard work in this regard to make it really that simple.

It is a good idea to have a

It is a good idea to have a contact page and is a common practice with all the websites. I've found the article very useful styling the drupal contact page. It is very informative.

I am really excited about the

I am really excited about the useful article on simple hacking for styling the drupal contant page. I think the information would be a great help for the developer. thanks for sharing.

If you are looking for an

If you are looking for an effective and impressive contant page for your drupal project, this is the inspiring article for you to go through. I've found the post to be very informative and an excellent tutorial.

It is a valuable lesson on

It is a valuable lesson on styling the drupal cantact page. I think this would galvanize my work. I appreciate the post for it is an excellent tutorial. thanks.

Undoubtedly, adding content

Undoubtedly, adding content to your Drupal site is very crucial to making your theme come to life and be effective. Styling drupal contact page is even more important for several obvious reasons. I've enjoyed your useful and valuable discussion in this regard.

If you are a user, you can

If you are a user, you can enable or disable your personal contact form. When enabled, every one can contact you through the contact form. I am glad to learn styling user friendly drupal contant page, Thanks for the information.

Thanks for the valuable

Thanks for the valuable information about the simple hack for styling the drupal contact page. I've found the post very interesting tutorial on the subject. It is an informative post. keep posting.

We cannot rule out the

We cannot rule out the importance of contact pages of any project management system. These are the tools which can be used cunningly to further and establish long term relations with the visitors. It is always good to score with the Drupal contact page.

pretty interesting to read

pretty interesting to read about the fact of the drupal and node several times came across through the node and drupal sites all are good and best,the topic which has been chosen is awesome thanks a lot for sharing it...

Biologique recherche

First-class information it is

First-class information it is really. We’ve been looking for this content.
designer web

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].

More information about formatting options

Tags for Simple Hack for Styling the Drupal Contact Page