Closed (fixed)
Project:
Andreas02
Version:
5.x-1.6
Component:
User interface
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
3 Jun 2008 at 10:15 UTC
Updated:
15 Dec 2008 at 09:13 UTC
It would be great to have control over the intro image (that is, the picture in the main_block region), so you could choose a different image for every node.
That could maybe be done defining a new block region that filled the space of the mentioned intro pic.
Comments
Comment #1
leo.ruffini commentedComment #2
nickbits commentedHi,
I will look at this for the next release. Not sure how easy it is or if possible. I have little time at the moment, so please do not expect anything much until sometime in July.
Cheers,
Nick
Comment #3
leo.ruffini commentedThank you, Nick. I'm sure a lot of users would love this feature.
Regards,
Leo
Comment #4
Green Moon commentedI agree, that would make it perfect for what I would like to do!
Comment #5
nickbits commentedHi All,
Sorry for taking so long to look at this. Work is so busy at the moment. Term wraps up in a day, then a few meetings, then I should get some time to get back and sort some of these feature requests out. Just bear with me if you can.
Cheers,
Nick
Comment #6
nickbits commentedJust to say, am still looking into this. I was thinking of using the themesettingsapi module. However, I have just seen the Header image module, which sound similar to what is required here. I have yet to look at this new module, so may override altering this theme if it does what is required. If anyone has any thoughts, do let me know.
Nick
Comment #7
leo.ruffini commentedI think my friend Georgios and I have found a fast and easy solution.
In style.css, go to the Header Description and
1. Eliminate
background:#505050 url(images/front.jpg) top left no-repeat;from #desc2. Add this lines:
3 Add "position: relative" (without the quotes) to "#desc p", "#desc h2" and "#desc a" definitions
4. You've got it! If you now create an image block (without any p, h2 or a tags) and a text block (with p, h2 and/or a tags), put them in the main_block region and you give the image block a lighter weight than the text one, you will see the text over the image. Just be careful to use an image with the correct dimensions.
5. Configure the image block to be shown only in the page/s you want. You can create more image blocks and use them in other pages, so you can control which image appears in the page header.
Comment #8
nickbits commentedHi,
Thanks for that. I will look at this, this weekend.
Thanks,
Nick
Comment #9
nickbits commentedHi,
I have tested this, most of it appears to be fine. The only problem I am getting is the placement of the image. Every time I add an image into a block, it automatically adds the
tags in. I have created a CSS entry to overcome the issue, however this requires more coding for the end user. I was wondering how you created your image block without using the
tag? Do you use a plain editor, or a rcih editor like FCK?
Cheers,
Nick
Comment #10
leo.ruffini commentedNick,
I use FCK Editor as rich text editor and uploaded the image with IMCE.
This is the header image block's code:
Hope it helps.
Comment #11
belong@mywebworkshop.com commentedNick,
I had this problem too. Drupal insisted on adding in the p tag, which seems a peculiarity of the full html input type that I might try and sort later.
I choose input as php, and it allows for exactly the input you give without adding anything. So then I put in the img tag as content and that is exactly (and all) that I get in the html at the end.
(I have other content in the #desc div that needs the p style to work properly).
It would be a lot cleaner if there was a class applied to the #desc div so that css could be used to change the background image.
I want to have different header images in different parts of the site - with this method each new page needs to be listed as either one to use the block or one to never use the block which is not going to be manageable longer term. Best I can do with this method is to have the top level of each section with its own image.
regards
Miriam
Comment #12
nickbits commentedHi,
Agree with you, it is only good for small sites. I am including the documentation and files needed to use this method in the next release, however, to use it, the user must manually change the files.
Nick
Comment #13
nickbits commented