Re: How to find Unused Page Layouts In Public facing site.
Hi Brian, Whole day i worked on this, Attached code file: using System; using System.Collections.Generic; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Publishing; using Microsoft.SharePoint.Administration; namespace PageLayout_New { class Program { static void Main(string[] args) { String strURL = "http://dev:10010/business/";; PublishingWeb oPublishingWeb = null; PublishingPageCollection oPublishingPages = null; try { using (SPSite mySite=new SPSite(strURL)) { foreach (SPWeb myWeb in mySite.AllWebs) { try { if (myWeb.Url.ToString().ToLower().Contains(strURL.ToLower())) { oPublishingWeb = PublishingWeb.GetPublishingWeb(myWeb); oPublishingPages = oPublishingWeb.GetPublishingPages(); foreach (PublishingPage oPublishingPage in oPublishingPages) { if (oPublishingPage.Name.ToLower()!="default.aspx") { try { String Name = oPublishingPage.Name; String Title = oPublishingPage.Title; String URL = oPublishingPage.Uri.ToString(); String PageLay = oPublishingPage.ListItem["PublishingPageLayout"].ToString(); Console.WriteLine("URL{0},PageLayoutName:{1}",URL,PageLay); } catch (Exception) { throw; } } } } } catch (Exception) { throw; } } } } catch (Exception) { throw; } } } } --> By this, I can get the publishing Urls and its associated PageLayout Path and ites name. -->Problem i was facing is it could not retrive all page Urls and its PageLayouts, --> Did i Miss anything thing in the code, Since all Publishing Pages and its Pagelayout Names are not retrived --> In Our Publishing Site, We have 2 SiteCollection one with root Url--> http://dev:10010/ and another with http://dev:10010/business/ --> The SiteCollection doesnot Contain any subites, but it contains many pages -->root sitecollection contains around 4000 pages and sub pages -->business SiteCollection Contains around 1000 Pages and SubPages -->But i could retrive only 600 page urls and its associated pagelayouts for its root site and icoumd retrive 200+ publishing pages and its associated page layouts for Business SiteCollection. --> But Many Page Urls and its Page Urls are missing by runnig this application in Staging and Production environment. --> Can anyone helpme! -->Its very urgent... --> Thanks in advance On Tue, Mar 6, 2012 at 5:55 AM, Brian Farnhill wrote: > Without writing all the code for you, you want to do something like this:* > *** > > ** ** > > using(var site = new SPSite("http://yoursite";)) > > { > > foreach(var web in site.Webs) > > { > > try > > { > > foreach (SPListItem item > in web.Lists["Pages"]) > > { > > > Console.WriteLine(string.Format("URL: {0} Layout: {1}", > item.File.SiteRelativeUrl, item["PublishingPageLayout"]); > > } > > } > > catch(Exception ex) > > { > > //Handle errors in here > before the web is closed > > } > > finally > > { > > web.Dispose(); > > } > >
RE: How to find Unused Page Layouts In Public facing site.
Without writing all the code for you, you want to do something like this: using(var site = new SPSite("http://yoursite";)) { foreach(var web in site.Webs) { try { foreach (SPListItem item in web.Lists["Pages"]) { Console.WriteLine(string.Format("URL: {0} Layout: {1}", item.File.SiteRelativeUrl, item["PublishingPageLayout"]); } } catch(Exception ex) { //Handle errors in here before the web is closed } finally { web.Dispose(); } } } So things you need to know about this: 1) The value output for the layout option is going to be formatted as per my previous email, so you will want to substring it to get only the useful part 2) Outputing to a console is not a great idea – perhaps drop it in to a datatable and then save that somewhere (google around and you will find something to save a DataTable as a CSV which you can then open in Excel and do stuff with). Whatever suits your needs here though will be fine 3) All the usual disclaimers of “I just wrote this in an email so it might not even compile” etc. etc. apply – pretty sure those are all the right property names there but I might have been a little off on some of them. 4) I’m not doing anything to check that the Pages list exists before I go looking for it, so either do a check there or handle the exception in that catch block accordingly Hope that helps Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: <http://twitter.com/BrianFarnhill> @BrianFarnhill | blog: <http://blog.brianfarnhill.com/> blog.brianfarnhill.com | xbox: <http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan> Modern Bogan From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of vijaykumar raavi Sent: Tuesday, 6 March 2012 6:17 AM To: ozMOSS Subject: Re: How to find Unused Page Layouts In Public facing site. Hi Braian, I have Created a Console Application to get get all Pages with it associated page layouts (but i could not get what i want) Code: using System; using System.Collections.Generic; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Publishing; namespace pgLayout_Unused { class Program { static void Main(string[] args) { using (SPSite site=new SPSite("http://dev:1001";)) { using (SPWeb web=site.OpenWeb()) { PublishingSite ps = new PublishingSite(site); PageLayoutCollection pageColl = ps.PageLayouts; foreach (PageLayout layout in pageColl) { SPFile currentFile = web.GetFile(layout.ServerRelativeUrl); Console.WriteLine("{0}...{1}",layout.Name,site.Url); } } } } } } --> Here i am getting all the Page layouts available(which is of no use to my requirement). --> I want to get each page url and the page layout used for it., --> I am not getting each page in the SiteCollection with its associated pagelayout. Please help me! Thanks in advance.. On Mon, Mar 5, 2012 at 4:03 AM, Paul Noone wrote: Vijay, you can create a custom Content and Structure Report to get all pages using (or not using) a certain publishing layout. But at the end of the day, does it really matter? Just restrict the site collection layouts to the ones you want to keep in use. -Original Message- From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Brian Farnhill Sent: Sunday, 4 March 2012 5:16 AM To: 'ozMOSS' Subject: RE: How to find Unused Page Layouts In Public facing site. Can you give us some more info about what didn't work with the approach I gave you? You getting specific errors? What exactly didn't work Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill | blog: blog.brianfarnhill.com | xbox: Modern Bogan -Original Message- From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of vijaykumar raavi Sent: Saturday, 3 March 2012 9:28 AM To: ozMOSS
Re: How to find Unused Page Layouts In Public facing site.
Hi Braian, I have Created a Console Application to get get all Pages with it associated page layouts (but i could not get what i want) Code: using System; using System.Collections.Generic; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Publishing; namespace pgLayout_Unused { class Program { static void Main(string[] args) { using (SPSite site=new SPSite("http://dev:1001";)) { using (SPWeb web=site.OpenWeb()) { PublishingSite ps = new PublishingSite(site); PageLayoutCollection pageColl = ps.PageLayouts; foreach (PageLayout layout in pageColl) { SPFile currentFile = web.GetFile(layout.ServerRelativeUrl); Console.WriteLine("{0}...{1}",layout.Name,site.Url); } } } } } } --> Here i am getting all the Page layouts available(which is of no use to my requirement). --> I want to get each page url and the page layout used for it., --> I am not getting each page in the SiteCollection with its associated pagelayout. Please help me! Thanks in advance.. On Mon, Mar 5, 2012 at 4:03 AM, Paul Noone < paul.no...@ceosyd.catholic.edu.au> wrote: > Vijay, you can create a custom Content and Structure Report to get all > pages using (or not using) a certain publishing layout. > But at the end of the day, does it really matter? Just restrict the site > collection layouts to the ones you want to keep in use. > -Original Message- > From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On > Behalf Of Brian Farnhill > Sent: Sunday, 4 March 2012 5:16 AM > To: 'ozMOSS' > Subject: RE: How to find Unused Page Layouts In Public facing site. > > Can you give us some more info about what didn't work with the approach I > gave you? You getting specific errors? What exactly didn't work > > Brian Farnhill > Solutions Architect, Extelligent Design | SharePoint Server MVP > phone: 0408 289 303 | twitter: @BrianFarnhill | blog: > blog.brianfarnhill.com | xbox: Modern Bogan > > > -Original Message- > From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On > Behalf Of vijaykumar raavi > Sent: Saturday, 3 March 2012 9:28 AM > To: ozMOSS > Subject: Re: How to find Unused Page Layouts In Public facing site. > > Thanks Brian, > This idea helped me very much. > I could get all the Page Layouts in my SiteCollection , As there are 324 > Page Layouts in my site collection, I was unable to retrieve Currently > unused Page Layouts. I am trying to this since last 2 days. I was not able > to solve it. > Can any one help me! > > Thanks in advance. > > > > On Fri, Mar 2, 2012 at 4:31 AM, Brian Farnhill >wrote: > > > There are metadata properties on each page list item that specify the > > content type called "PublishingPageLayout" that you should be able to > > interrogate to get the page layout. It's usually formatted like this: > > > > "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page > > Layout Name" > > > > So the first part being the relative path to the page layout, and the > > second part being the name of the layout (although that's less import > > as it can really be anything, especially if it was provisioned in a > > feature and the developer set the text to something else). You could > > iterate over all your pages and build a list of page layouts in use > > and then compare that to the list of available page layouts and go from > there. > > > > *Brian Farnhill* > > *Solutions Architect, Extelligent Design | SharePoint Server MVP* > > phone: 0408 289 303 | twitter: @BrianFarnhill< > http://twitter.com/BrianFarnhill>| blog: > > blog.brianfarnhill.com | xbox: Modern > > Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Boga > > n> > > > > ------ > > Date: Thu, 1 Mar 2012 23:35:35 +0530 > > Subject: How to find Unused Page Layouts In Public facing site. > > From: vijaykumar@gmail.com > > To: ozmoss@ozmoss.com > > > > > > Hi all, > > I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit. > > There are many page layouts in my project which are not in use, Is the > > any way to find all page layouts that is not used by any site. > > I tried using Object model, I was unable to retrieve them, Can any one > > help me! > > > > Thanks in advance.. > > > > -- > > Regards, > > *☛ V
RE: How to find Unused Page Layouts In Public facing site.
Vijay, you can create a custom Content and Structure Report to get all pages using (or not using) a certain publishing layout. But at the end of the day, does it really matter? Just restrict the site collection layouts to the ones you want to keep in use. -Original Message- From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Brian Farnhill Sent: Sunday, 4 March 2012 5:16 AM To: 'ozMOSS' Subject: RE: How to find Unused Page Layouts In Public facing site. Can you give us some more info about what didn't work with the approach I gave you? You getting specific errors? What exactly didn't work Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill | blog: blog.brianfarnhill.com | xbox: Modern Bogan -Original Message- From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of vijaykumar raavi Sent: Saturday, 3 March 2012 9:28 AM To: ozMOSS Subject: Re: How to find Unused Page Layouts In Public facing site. Thanks Brian, This idea helped me very much. I could get all the Page Layouts in my SiteCollection , As there are 324 Page Layouts in my site collection, I was unable to retrieve Currently unused Page Layouts. I am trying to this since last 2 days. I was not able to solve it. Can any one help me! Thanks in advance. On Fri, Mar 2, 2012 at 4:31 AM, Brian Farnhill wrote: > There are metadata properties on each page list item that specify the > content type called "PublishingPageLayout" that you should be able to > interrogate to get the page layout. It's usually formatted like this: > > "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page > Layout Name" > > So the first part being the relative path to the page layout, and the > second part being the name of the layout (although that's less import > as it can really be anything, especially if it was provisioned in a > feature and the developer set the text to something else). You could > iterate over all your pages and build a list of page layouts in use > and then compare that to the list of available page layouts and go from there. > > *Brian Farnhill* > *Solutions Architect, Extelligent Design | SharePoint Server MVP* > phone: 0408 289 303 | twitter: > @BrianFarnhill<http://twitter.com/BrianFarnhill>| blog: > blog.brianfarnhill.com | xbox: Modern > Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Boga > n> > > -- > Date: Thu, 1 Mar 2012 23:35:35 +0530 > Subject: How to find Unused Page Layouts In Public facing site. > From: vijaykumar@gmail.com > To: ozmoss@ozmoss.com > > > Hi all, > I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit. > There are many page layouts in my project which are not in use, Is the > any way to find all page layouts that is not used by any site. > I tried using Object model, I was unable to retrieve them, Can any one > help me! > > Thanks in advance.. > > -- > Regards, > *☛ VIJAYKUMAR* > <https://www.mcpvirtualbusinesscard.com/VBCServer/vijaymoss/interactiv > ecard> > > > ___ ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > ___ > ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > -- Thanks & Regards, *☛ VIJAYKUMAR* * * ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: How to find Unused Page Layouts In Public facing site.
Can you give us some more info about what didn't work with the approach I gave you? You getting specific errors? What exactly didn't work Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill | blog: blog.brianfarnhill.com | xbox: Modern Bogan -Original Message- From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of vijaykumar raavi Sent: Saturday, 3 March 2012 9:28 AM To: ozMOSS Subject: Re: How to find Unused Page Layouts In Public facing site. Thanks Brian, This idea helped me very much. I could get all the Page Layouts in my SiteCollection , As there are 324 Page Layouts in my site collection, I was unable to retrieve Currently unused Page Layouts. I am trying to this since last 2 days. I was not able to solve it. Can any one help me! Thanks in advance. On Fri, Mar 2, 2012 at 4:31 AM, Brian Farnhill wrote: > There are metadata properties on each page list item that specify the > content type called "PublishingPageLayout" that you should be able to > interrogate to get the page layout. It's usually formatted like this: > > "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page > Layout Name" > > So the first part being the relative path to the page layout, and the > second part being the name of the layout (although that's less import > as it can really be anything, especially if it was provisioned in a > feature and the developer set the text to something else). You could > iterate over all your pages and build a list of page layouts in use > and then compare that to the list of available page layouts and go from there. > > *Brian Farnhill* > *Solutions Architect, Extelligent Design | SharePoint Server MVP* > phone: 0408 289 303 | twitter: > @BrianFarnhill<http://twitter.com/BrianFarnhill>| blog: > blog.brianfarnhill.com | xbox: Modern > Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Boga > n> > > -- > Date: Thu, 1 Mar 2012 23:35:35 +0530 > Subject: How to find Unused Page Layouts In Public facing site. > From: vijaykumar@gmail.com > To: ozmoss@ozmoss.com > > > Hi all, > I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit. > There are many page layouts in my project which are not in use, Is the > any way to find all page layouts that is not used by any site. > I tried using Object model, I was unable to retrieve them, Can any one > help me! > > Thanks in advance.. > > -- > Regards, > *☛ VIJAYKUMAR* > <https://www.mcpvirtualbusinesscard.com/VBCServer/vijaymoss/interactiv > ecard> > > > ___ ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > ___ > ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > -- Thanks & Regards, *☛ VIJAYKUMAR* * * ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Re: How to find Unused Page Layouts In Public facing site.
Thanks Brian, This idea helped me very much. I could get all the Page Layouts in my SiteCollection , As there are 324 Page Layouts in my site collection, I was unable to retrieve Currently unused Page Layouts. I am trying to this since last 2 days. I was not able to solve it. Can any one help me! Thanks in advance. On Fri, Mar 2, 2012 at 4:31 AM, Brian Farnhill wrote: > There are metadata properties on each page list item that specify the > content type called "PublishingPageLayout" that you should be able to > interrogate to get the page layout. It's usually formatted like this: > > "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page Layout > Name" > > So the first part being the relative path to the page layout, and the > second part being the name of the layout (although that's less import as it > can really be anything, especially if it was provisioned in a feature and > the developer set the text to something else). You could iterate over all > your pages and build a list of page layouts in use and then compare that to > the list of available page layouts and go from there. > > *Brian Farnhill* > *Solutions Architect, Extelligent Design | SharePoint Server MVP* > phone: 0408 289 303 | twitter: > @BrianFarnhill<http://twitter.com/BrianFarnhill>| blog: > blog.brianfarnhill.com | xbox: Modern > Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan> > > -- > Date: Thu, 1 Mar 2012 23:35:35 +0530 > Subject: How to find Unused Page Layouts In Public facing site. > From: vijaykumar@gmail.com > To: ozmoss@ozmoss.com > > > Hi all, > I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit. > There are many page layouts in my project which are not in use, Is the any > way to find all page layouts that is not used by any site. > I tried using Object model, I was unable to retrieve them, > Can any one help me! > > Thanks in advance.. > > -- > Regards, > *☛ VIJAYKUMAR* > <https://www.mcpvirtualbusinesscard.com/VBCServer/vijaymoss/interactivecard> > > > ___ ozmoss mailing list > ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > ___ > ozmoss mailing list > ozmoss@ozmoss.com > http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss > > -- Thanks & Regards, *☛ VIJAYKUMAR* * * ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: How to find Unused Page Layouts In Public facing site.
There are metadata properties on each page list item that specify the content type called "PublishingPageLayout" that you should be able to interrogate to get the page layout. It's usually formatted like this: "~SiteCollection/_catalogs/masterpage/MyPageLayout.aspx, My Page Layout Name" So the first part being the relative path to the page layout, and the second part being the name of the layout (although that's less import as it can really be anything, especially if it was provisioned in a feature and the developer set the text to something else). You could iterate over all your pages and build a list of page layouts in use and then compare that to the list of available page layouts and go from there. Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill | blog: blog.brianfarnhill.com | xbox: Modern Bogan Date: Thu, 1 Mar 2012 23:35:35 +0530 Subject: How to find Unused Page Layouts In Public facing site. From: vijaykumar@gmail.com To: ozmoss@ozmoss.com Hi all,I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit.There are many page layouts in my project which are not in use, Is the any way to find all page layouts that is not used by any site.I tried using Object model, I was unable to retrieve them, Can any one help me! Thanks in advance.. -- Regards, ☛ VIJAYKUMAR ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
How to find Unused Page Layouts In Public facing site.
Hi all, I am migrating MOSS 2007 32-bit to MOSS 2007 64-bit. There are many page layouts in my project which are not in use, Is the any way to find all page layouts that is not used by any site. I tried using Object model, I was unable to retrieve them, Can any one help me! Thanks in advance.. -- Regards, *☛ VIJAYKUMAR* <https://www.mcpvirtualbusinesscard.com/VBCServer/vijaymoss/interactivecard> ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: Page layouts
Hi Brian Thanks for pointing me in that direction :) I decided to try modifying the masterpage first, before redoing everything in HTML. I hid the default PlaceHolderTitleBreadCrumb and created a 2nd one called PlaceHolderTitleBreadCrumb1. I think changed the page layouts used across the site to refer to the new placeholder, and it works great. The files in the 14 hive can now overwrite whatever they want because it's hidden, and the system pages display with the current nav as it doesn't know any better. [cid:image003.png@01CCCFA8.967B2550] Nigel From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Brian Farnhill Sent: Tuesday, 10 January 2012 12:19 PM To: 'ozMOSS' Subject: RE: Page layouts They don't use a page layout as such, they are all custom ASPX pages that sit in the 14 hive, and from memory they will grab a different site map provider to the default one that is used in the page layouts in SharePoint (They use SPSiteMapProvider and I'm pretty sure that page layouts use the CurrentNavigation one). Also they use different properties on the ListSiteMapPath control to generate that cascading offset as well. You should be able to get around this in your master page by hiding the PlaceHolderBreadcrumb placeholder and just putting a constant set of HTML and controls in to the master page that you want to be used everywhere, because all the system pages just override that placeholder to do the content their way. Pretty sure there isn't ever anything else important that will get missed by hiding that place holder, but as always test your site after the change to be sure. Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhill<http://twitter.com/BrianFarnhill> | blog: blog.brianfarnhill.com<http://blog.brianfarnhill.com/> | xbox: Modern Bogan<http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan> From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Hertz Sent: Tuesday, 10 January 2012 11:53 AM To: ozMOSS Subject: Page layouts Hey all This should hopefully be an easy one. Does anyone know what page layout is used for system pages? (i.e. View all site content) For some reason, the breadcrumbs on system pages are messed up. Incorrect: [cid:image001.png@01CCCFA2.AA43E690] Correct: [cid:image002.png@01CCCFA2.AA43E690] Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. <><><>___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: Page layouts
They don't use a page layout as such, they are all custom ASPX pages that sit in the 14 hive, and from memory they will grab a different site map provider to the default one that is used in the page layouts in SharePoint (They use SPSiteMapProvider and I'm pretty sure that page layouts use the CurrentNavigation one). Also they use different properties on the ListSiteMapPath control to generate that cascading offset as well. You should be able to get around this in your master page by hiding the PlaceHolderBreadcrumb placeholder and just putting a constant set of HTML and controls in to the master page that you want to be used everywhere, because all the system pages just override that placeholder to do the content their way. Pretty sure there isn't ever anything else important that will get missed by hiding that place holder, but as always test your site after the change to be sure. Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: <http://twitter.com/BrianFarnhill> @BrianFarnhill | blog: <http://blog.brianfarnhill.com/> blog.brianfarnhill.com | xbox: <http://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan> Modern Bogan From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Hertz Sent: Tuesday, 10 January 2012 11:53 AM To: ozMOSS Subject: Page layouts Hey all This should hopefully be an easy one. Does anyone know what page layout is used for system pages? (i.e. View all site content) For some reason, the breadcrumbs on system pages are messed up. Incorrect: Correct: _ Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. <><>___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Page layouts
Hey all This should hopefully be an easy one. Does anyone know what page layout is used for system pages? (i.e. View all site content) For some reason, the breadcrumbs on system pages are messed up. Incorrect: [cid:image001.png@01CCCF8E.751D1E50] Correct: [cid:image002.png@01CCCF8E.751D1E50] Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. <><>___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: SP2010 Page layouts - RichImageField
You need to make sure it is added to your content type that is linked to the page layout. Regards Paul Turner Practice Lead - SharePoint SMS Management & Technology M 0412 748 168 paul.tur...@smsmt.com<mailto:paul.tur...@smsmt.com> www.smsmt.com<http://www.smsmt.com/> About SMS: Level 29, Westpac House, 91 King William Street, Adelaide SA 5095 SMS Management & Technology (SMS) [ASX:SMX] is Australia's largest publicly listed Management Services company. We solve complex problems and transform business through Consulting, Technology and Systems Integration P please consider the environment before printing this email [cid:image001.png@01CC8FD5.27242CF0] From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Hertz Sent: Thursday, 20 October 2011 3:29 PM To: ozMOSS Subject: SP2010 Page layouts - RichImageField Hi all I'm creating a page layout for news articles in our 2010 dev environment. On the page, I have a "Page image" field (PublishingWebControls:RichImageField) into which I want to add an image. I've got a new page, using the above page layout. When editing it, I can click the 'Click here to insert a picture from SharePoint', browse to an image, and insert it. As soon as I click save (either save and close, or save and keep editing) the image disappears, and it defaults back to the 'Click here to insert' I've checked all tag properties, and everything appears fine. Google isn't much helps - the only issues others seem to be having is that the page shows html instead of the image, but I'm not even getting that far. Does anyone have any suggestions? Kind Regards, Nigel Hertz SharePoint Administrator & Developer, Information Technology Stockland, Level 25, 133 Castlereagh Street, Sydney NSW 2000 T: +61 2 9035 2617 M: +61 4 0103 4605 F: +61 2 8988 2617 E: nigel.he...@stockland.com.au<mailto:nigel.he...@stockland.com.au> www.stockland.com.au<http://www.stockland.com.au> Before printing this email, please consider the environment. Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. NOTICE - This communication is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking any action in reliance on, this communication by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient of this communication please delete and destroy all copies and telephone SMS Management & Technology on 1300 842 767 immediately. Any views expressed in this Communication are those of the individual sender, except where the sender specifically states them to be the views of SMS Management & Technology. Except as required by law, SMS Management & Technology does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free from errors, virus, interception or interference. <>___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
SP2010 Page layouts - RichImageField
Hi all I'm creating a page layout for news articles in our 2010 dev environment. On the page, I have a "Page image" field (PublishingWebControls:RichImageField) into which I want to add an image. I've got a new page, using the above page layout. When editing it, I can click the 'Click here to insert a picture from SharePoint', browse to an image, and insert it. As soon as I click save (either save and close, or save and keep editing) the image disappears, and it defaults back to the 'Click here to insert' I've checked all tag properties, and everything appears fine. Google isn't much helps - the only issues others seem to be having is that the page shows html instead of the image, but I'm not even getting that far. Does anyone have any suggestions? Kind Regards, Nigel Hertz SharePoint Administrator & Developer, Information Technology Stockland, Level 25, 133 Castlereagh Street, Sydney NSW 2000 T: +61 2 9035 2617 M: +61 4 0103 4605 F: +61 2 8988 2617 E: nigel.he...@stockland.com.au www.stockland.com.au Before printing this email, please consider the environment. _ Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss