Displaying All Site Content and Recycle Bin links in BlankWebPartPage.aspx

All Site Content and Recycle Bin links in SharePoint 2010 Publishing Page LayoutsJust a quick post today… I had a situation where I was working with a SharePoint 2010 Team Site with the Publishing feature enabled. As a result, when I created a number of pages based off the BasicWebPartPage.aspx Page Layout, the Quick Launch links for All Site Content and Recycle Bin were not displayed and I wanted them to be visible in order to keep a consistent look across all pages on the site.

A little digging into the BlankWebPartPage.aspx page layout file I could see that the page layout was registering an additional CSS file of “~sitecollection/Style Library/~language/Core Styles/page-layouts-21.css”. A quickly fired up SharePoint Designer 2010, navigated over to the Site Collection’s Style Library, and opened the page-layouts-21.css file. Down near the bottom of the file, the following CSS style was the culprit that was hiding the All Site Content and Recycle Bin links within the Quick Launch:

[html]
.s4-specialNavLinkList {
display:none;
}
[/html]

Simply removing this style from the page-layouts-21.css file took care of the problem across the Site Collection for all pages with a page layout that included this CSS file.

But wait, what if we didn’t want it to go across the whole Site Collection? To isolate the change to just a specific page layout, you would just have to add this style to the page layout .aspx within the Master Page and Page Layout gallery. To get there, open up SharePoint Designer and click the Page Layouts selection within the Site Objects left menu. Select the page layout that you wish to modify and click Edit File. At this point, when you click the Code view link within SharePoint Designer, you might experience a page layout file that is not editable. Fear not, just click the Advanced Mode within the Home tab to open the page layout file in full edit mode.

To add the All Site Content and Recycle Bin links within the Page Layout file, just add the following style declaration within the PlaceHolderAdditionalPageHead content place holder of the aspx page:

[html]
<style type=”text/css”>
.s4-specialNavLinkList {
display:inline;
}
</style>
[/html]

Save the page layout file, check it back in and publish it. You should now be able to see the All Site Content and Recycle Bin links below the Quick Launch on pages based on this page layout file.

I’m sure there are a number of other ways to make these links reappear but the two methods documented above fulfill all the needs that I have right now.

Enjoy,
Jason

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *