Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there any way to show Ribbon for visitors, in all pages, by default?

Normal Page View for Visitors: (No Ribbon)

enter image description here

Normal Page for Editors:

enter image description here

I am looking for a solution to display the ribbon for Visitors by default (even though only alertme and Email a Link will be enabled)

Editor's view of Page with Web Parts : enter image description here

Editor's view of Page with Web Parts when a webpart is selected :

enter image description here

Visitors View of the page with Multiple Web Parts (No Ribbon) enter image description here

As you can see even if I select the Web Part, Ribbon will not be displayed.

Ribbon will be shown if the visitor visits the document library page. For example enter image description here

I am looking for a solution by which I can display the ribbon always for all users.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Used Ribbon.CommandUIVisible property. I wrote code to set its value as True for everypage load.

public void ShowRibbon()
{
    SPRibbon current = SPRibbon.GetCurrent(this.Page);

    if (current != null && this.Page.Request.IsAuthenticated)
    {
        current.CommandUIVisible = true;
    }
}
share|improve this answer
    
Nice, i didnt know of that property. Will check it out –  Anders Rask Oct 22 '11 at 8:13

What would you like the ribbon to show, when clicking the web parts?

What i'm trying to say is that the ribbon depends on context. If you have the appropriate rights, it will show you Item and List tabs in a list, but only when you are on the list forms pages, since that is the context that triggers the ribbon to show.

When looking at Xml List view web parts representing lists and libraries, you do not get a ribbon, unless you are in edit mode or clicked "Show Ribbon" from Site Actions (and this button only shows up if you enabled "Show Ribbon" in http://yourSite/_layouts/AreaNavigationSettings.aspx). When you do see the ribbon, what you see will again depend on context: if you are in edit mode and select a row in a list view web part, you will see Web Part Tools > Options, Page Tools > Insert and List Tools > Items | List.

If you are on a published page you should only see List Tools > Items | List` which i guess is the one you want? Just remember that you need to click on the list item to get the ribbon, since it works in context of what you select.

what team site looks like for visitor at login what team site looks like for visitor at login
visitor click web part chromevisitor click web part chrome
visitor click list item visitor click list item

share|improve this answer
    
Thanks for the answer. I have edited my question to include screenshots. Please check. –  Shoban Oct 21 '11 at 8:48
    
are you talking anonymous users or readers? –  Anders Rask Oct 21 '11 at 11:19
    
the behaviour seems consistent with that someone disabled ribbon. When i log into a site with a reader, i see the ribbon. Did you check the ribbon setting (publishing site only) http://yourSite/_layouts/AreaNavigationSettings.aspx –  Anders Rask Oct 21 '11 at 11:27
    
Above link activates 'show/hide' ribbon menu item. If you see my screenshots, visitor does not have Site Actions Menu. Another thing to note is.. 1) I give a visitor more rights and 2) enables ribbon using show/hide ribbon command. 3) I remove his rights and revert back to Visitor ..... and the visitor still sees the ribbon (with buttons disabled as per permission) :) –  Shoban Oct 21 '11 at 11:45
    
What happens behind the scenes when "show/hide ribbon" is clicked? Any ideas? –  Shoban Oct 21 '11 at 11:50

I dont know whether I have understood your requirement clearly, but hope this post helps - http://danielvg.dk/post/2010/07/11/SharePoint-Show-Ribbon-by-Default.aspx

share|improve this answer
    
Thanks Deepu. This is not what I am looking for :-) –  Shoban Oct 21 '11 at 8:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.