Fwiw, we previously used different master pages for different pages
within the same site. To work around the one master page per site issue,
the page layout references a specific master page and inherits from
WebPartPage instead of PublishingLayoutPage:

 

<%@ Page language="C#" MasterPageFile="mycustom.master"
Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,
Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" %>

 

As a downside, changing the site's master page in site settings has no
effect but that's not something we normally do on westernaustralia.com
anyway. 

 

(we've since refactored our master pages down to a single .master file
but this setup persists...)

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Nigel Witherdin
Sent: Monday, 14 February 2011 1:00 PM
To: OzMoss
Subject: RE: suggestions to solve a banner problem

 

I think in most cases the top section of a page will be controlled by
the master page, not the page layout, as there is generally a logo and a
global nav held there also. You cannot add web part zones to a master
page (without doing a little hack -
http://littletalk.wordpress.com/2009/07/28/add-webpart-zone-on-masterpag
e-in-sharepoint/), so if your layout is like I have described, then you
need to use a content placeholder.  Also, I don't really like the idea
of content author's having the ability to change items considered to be
part of the overall design, and not specific to the current page.

 

 

________________________________

From: [email protected]
To: [email protected]
Date: Mon, 14 Feb 2011 10:18:46 +1100
Subject: RE: suggestions to solve a banner problem

I'm with Nigel. This is a clear-cut case for a new layout page designed
for this purpose.

 

The benefit of a layout page is that you can use it whenever required
and have the flexibility to add whatever content you want as needs
change.

 

We have employed this to great effect. I simply created a new layout
page with a web part zone that stretches full-width along the top of the
page. The benefits of using a web part zone are that you don't need to
worry about a custom placeholder, and you can also add any web part you
might need - Picture, Flash, Silverlight etc.

 

Regards,

Paul

 

--

Online Developer/SharePoint Administrator,
ICT Infrastrcuture Team
CEO Sydney

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Nigel Witherdin
Sent: Saturday, 12 February 2011 12:15 PM
To: OzMoss
Subject: RE: suggestions to solve a banner problem

 


 I would think adding a contentplaceholder which is replaced by your
home page's page layout would be a better option, as this means the
banner would only be downloaded to the client on the home page, not
every page and then hidden on most of them by javasscript or css 

________________________________

From: [email protected]
To: [email protected]
Subject: RE: suggestions to solve a banner problem
Date: Sat, 12 Feb 2011 10:10:04 +1000

Thanks Guys, some great suggestions, I'll definitely try them out on
Monday! 

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Dan Sheedy
Sent: Friday, 11 February 2011 10:15 PM
To: ozMOSS
Subject: Re: suggestions to solve a banner problem

 

2 options. Add some javascript on the master page to check the url and
either hide/display the banner element. 

 

https://developer.mozilla.org/en/DOM/window.location

 

Or again, have the banner element in the master page, hide it by default
in your custom.css and use a content editor web part to override the
display property when needed.

 

http://www.endusersharepoint.com/2010/01/29/style-a-page-using-the-conte
nt-editor-web-part-and-css/

 

Both ways you can leave the element in the master page and not worry
about the other pages. 

 

On Fri, Feb 11, 2011 at 7:59 PM, ken zheng <[email protected]> wrote:

you can just embed the JQeury into your front page to change the image

 

________________________________

From: [email protected]
To: [email protected]

Subject: RE: suggestions to solve a banner problem

Date: Fri, 11 Feb 2011 17:28:17 +1000

 

Are you suggesting something like having the banner in a div tag, and
changing the style sheet to display:none if it's not the site root? I
could look into that...
 

From: [email protected] [mailto:[email protected]] On
Behalf Of ken zheng
Sent: Friday, 11 February 2011 3:58 PM
To: [email protected]
Subject: RE: suggestions to solve a banner problem

 

have you considered using Javscript/JQuery to change the style sheet?

Ken

________________________________

From: [email protected]
To: [email protected]
Subject: suggestions to solve a banner problem
Date: Fri, 11 Feb 2011 14:48:45 +1000

Hey all,
 
Wondering if anyone can suggest a solution to this problem.
 
The client wants a banner on the front page (preferably only the front
page but could be at the top level of the site if that is the easiest
way).
 
I can create a custom master page, but I do not want this master page
used on any new subsites created. 
 
I have considered everything from a custom placeholder on the page
(don't know if this would work) or using a custom layout?? Going round
in circles and hoped somebody out there has had this issue before. I
figure there has to be an easy way to solve this - I think I'm looking
too hard...
 
Any suggestions?
 
Maxine Harwood | Solutions Architect

Red Box IT 

0410 525 989 | 07 3056 1725 (VoIP)

www.redboxit.com.au <http://www.redboxit.com.au/> 

ABN: 96 189 767 742 | ACN: 125 489 278

 
 


_______________________________________________ ozmoss mailing list
[email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss 


_______________________________________________ ozmoss mailing list
[email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss 


_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

 


_______________________________________________ ozmoss mailing list
[email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss 


_______________________________________________ ozmoss mailing list
[email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to