Add image to header region.

Aleksey Seve's picture

Good day,
I have two questions, dont think its really hard for developers but kinda confusing for the beginner. I have Drupal 6.13.
In Acquia Slate I would like to add image to the header region(i dont have a slogan or search) and have it to be displayed on all pages except front page. I already have the front page I want but would like to see additional image on header when I click any of my primary links.
Could you please advise how I separate whats displayed on front page and whats on other pages.
Thank You.

Groups:
Login to post comments

The easiest way to do this is

sgprs - Fri, 2009-10-02 06:14

The easiest way to do this is by using different blocks for the front page and all others. In Acquia Slate there's already a Header block, so the hard part done for you.

The easiest way to do this, assuming you want a static image, is to just create a new block... call it, for example, "Header Image All". Place your image in the text area of the block (center aligned, for example) then scroll to the bottom to the "Page Specific Visibility Settings". First thing to do is, If you're using an editor (FCK, TinyMCE), you have to either exclude the editor function from operating on the "Specific Page Visibility Settings" section, which is at the bottom, or if you have the plain text function enabled in your editor, then just make sure you switch to plain text. Now just tick "Show on Every Page Except the Listed Pages" and enter front (enclosed in angle brackets -AKA - greater than/less than). This is the tag that tells it to not show on your front page. Hit save. Now just place your block in the header section, hit save... and you're done!

Go to the front page and make sure the newly created block isn't there, that it IS on ALL other pages and that it looks ok. You can do this to create different blocks containing different header images and have them display only on those pages. So technically, you can have a different header image for each different content section.

NOTE: Everytime you make any change to these blocks, you need to make sure you switch to plain text in the "Page Visibility Settings" instead of your editor and make sure the page is listed correctly, ie; for front page, page/* for all create content using the "page" content type or enter the exact path to a specific page where you want the block (content/example). Remember, the paths are relative. If you enter the path in your editor, it wont dbe recognized because the editor strips out certain things.

I know it can be a bit confusing for beginners but trust me, once you do it a few times, it becomes second nature. And Drupal, once you work through it's learning curve, is BY FAR the easiest to add content to. Every other CMS I've tried is a pain to just add quick content. Drupal makes it a piece of cake. Gotta love Drupal!!!

Hope this helps! If you need more help, just let me know!

Chris


wow

Aleksey Seve's picture
Aleksey Seve - Wed, 2009-10-14 07:22

Thank You Chris, it really helps!


Great! You're very welcome.

sgprs - Wed, 2009-10-14 12:23

Great! You're very welcome. Please don't hesitate if you have anymore questions.

Best of luck to ya!

Chris