[Plone-UI] custom header image per page
espenmn
espen at medialog.no
Tue Aug 21 16:18:44 UTC 2007
I think this is better done with css. In ploneCustom.css, place this line:
#portal-header {background: white url(header01.png) no-repeat; height:
150px; width: 535px}
Then you can just place an header01.png image in all folders where you want
it different).
(there might be a reason to use the absolute url in front of header01.png)
twerp wrote:
>
> Hi all,
>
> i found a way (probably undocumented) to add custom header images to each
> page. My header.jpg is static, it contains but the company logo. What i
> did is insert an image tag into main_template:
>
> <div class="documentContent" id="region-content">
>
>
>
> <div
> metal:use-macro="here/global_statusmessage/macros/portal_message">
> Portal status message
> </div>
>
> <metal:header metal:define-slot="header" >
> header01.png
> </metal:header>
>
> <metal:bodytext metal:define-slot="main"
> tal:content="nothing">
> Page body text
> </metal:bodytext>
>
> <metal:sub metal:define-slot="sub">
> <metal:discussion
> use-macro="here/viewThreadsAtBottom/macros/discussionView" />
> </metal:sub>
>
> </div>
>
> where header01.png is added by me. The problem is, it crashes IE6 all the
> time. IE7 and FF are cool. It took me forever to find out why IE shuts
> down but this is it. If i add an image named header01.png to each folder
> it will display correctly and above my right column where the actual
> content is. (It's a 2 col layout, with navtree on the left and body text
> on the right.)
> If this method is incorrect, how else could i add a custom header?
> I don't want to replace or swap logo.jpg, i need a custom header below the
> logo for each page.
>
--
View this message in context: http://www.nabble.com/custom-header-image-per-page-tf3947026s6746.html#a12258011
Sent from the User Interface & Design mailing list archive at Nabble.com.
More information about the UI
mailing list