|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/12/2008 10:41:12 AM
Posts: 6,
Visits: 31
|
|
| [<SP 2007] All web-part pages have the Site Description at the top displayed as HTML. We thought maybe it was some webpart we might be able to disable, but it seems built into the actual HTML of the page. In the Site Settings, it says the following about the 'Title and Description' of a site (the description that is given in the "Look and Feel" --> "Title, description, and icon"): "Type a title and description for your Web site. The title is displayed on each page in the site. The description is displayed on the home page." This seemed to be the behavior in 2003, but in our 2007 implementation, the description appears on every single page. This is incredibly annoying when the description tends to be rather lengthy. Has anyone else seen this behavior on 2007? Is there some setting that we are not seeing to cause this to happen? TIA
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/14/2008 9:41:29 AM
Posts: 14,
Visits: 16
|
|
| The description text is included in the layout page for the site definition. Specifically, you can find it in the following line of code: < tr > < td class="ms-webpartpagedescription" >< SharePoint:ProjectProperty Property="Description" runat="server"/ ></ td > < / tr >For WSS this code is located in the 'default.aspx' page of the 12\TEMPLATE\SiteTemplates\STS folder. You can also access this page in SharePoint Designer by opening the site and selecting 'Default.aspx' from the tree on the left. If you want to retain the description on the root site and hide it on child sites, replace the default code with the following (extra white spaces have been inserted in the tags to display in this form; remove them prior to implementing the code): < tr > < td class="ms-webpartpagedescription" > < % if (SPContext.Current.Web.IsRootWeb) { % > < SharePoint:ProjectProperty Property="Description" runat="server"/ > < % } % ></ td > < / tr >
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/12/2008 10:41:12 AM
Posts: 6,
Visits: 31
|
|
| It's not the child sites that's giving me the problem, it's the pages within a single site that have the description on each page. So, for example - I have a blank site with a description of "TEST". On the default.aspx page, TEST shows up at the top of the page. Now, I go to Site Actions -> Create to create a new Web Part Page on the blank site. I do so and navigate to the new page. The description of the site, "TEST" is on the top of this new page. This is not the expected behavior (I don't want to see the description at the top of each page in a site). Does your solution take care of this?...I started to try it and got the error about 'code blocks are not allowed in this file'. If found somewhere else that I need to explicitly allow server-side code in the web.config file. But, before I go through all of that, I want to make sure we were on the same page.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/14/2008 9:41:29 AM
Posts: 14,
Visits: 16
|
|
| Ah, now I understand. Can you confirm that you are using WSS in this scenario and not MOSS? The solution will be a bit different for either scenario...
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/14/2008 9:41:29 AM
Posts: 14,
Visits: 16
|
|
| I should point out that the code sample I provided WILL work on the default.aspx page in WSS.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/14/2008 9:41:29 AM
Posts: 14,
Visits: 16
|
|
| Ok, here's your answer to web part pages within WSS sites. First, navigate to the following directory: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS Make a backup of each .aspx page in the directory then open each one and locate the following code: < asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server" > < SharePoint rojectProperty Property="Description" runat="server"/> < /asp:Content > Remove the < SharePoint rojectProperty ... /> tag. This will elminate the description from all web part pages. Note that this is a global change - all WSS sites will inherit the modified pages. You may also want to do the same to the BPSTD.ASPX page in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\STS\DOCTEMP\BLANKPGS.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 1/14/2008 9:41:29 AM
Posts: 14,
Visits: 16
|
|
| Sigh...I hate forum text editors. The goofy smiley faces should read ": P" - apparently putting those together results in a sticking-out tongue smiley. Now I know...
|
|
|
|