Friday, January 23, 2015

How to hide sharepoint 2013 ribbon bar from visitors

Hide sharepoint 2013 ribbon bar from visitors


Ribbon is a great new feature introduced by SharePoint 2010. It provides great user experience for users with elevated privileges, like contributors and site owners. However, for users with lease privilege, such as visitors and anonymous users, it seems like a big waste of page real estate. Because for those users, all ribbon provides are navigation breadcrumb and welcome control (user name with a drop down list on top-right corner).

So I have been asked to figure out a way to remove or hide the ribbon area from user with lease privilege, and here is how:

1)      Open your SharePoint master page
2)      Locate this line:
       <div id="ms-designer-ribbon" >
             <PublishingRibbon:PublishingRibbon runat="server" />
       </div>
3)      Change it to:
      <SharePoint:SPSecurityTrimmedControl PermissionsString="EditListItems" runat="server"> 
              <div id="ms-designer-ribbon" >
                       <PublishingRibbon:PublishingRibbon runat="server" />
              </div>
      </SharePoint:SPSecurityTrimmedControl>

5)      Save the new master page and publish it.

Now when a user without “EditListItems” access ,  would not see the ribbon area. You may want to move at least the welcome control to somewhere outside the ribbon area so your lease privilege users can see their user names.

I hope this helps.
Oumaima

Friday, January 16, 2015

Managed Metadata Navigation not showing to users

Managed Metadata Navigation not showing to users

I created a Managed Metadata service and created group, term-set and terms
I gave full access to application pool service account. read access to all the users via AD Security Group.
I set up navigation to use Managed Navigation (Managed Metadata Service).
I am logged-in as farm admin and able to view the navigation when i browse site. But user are not seeing navigation.
One thing i noticed is when i give users full access or designer access to site they will be able to see the navigation. but i don't want to give all users full access or designer access to the site.
Solution :
Go to site settings => Term Store Management, then select the group recently created.
Go to the navigation tab and make sure your simple link or header is selected for the terms.

I hope this helps.
Oumaima

Thursday, January 8, 2015

Unable to create folder in SharePoint 2013 library SSRS

Unable to create folder in SharePoint 2013 library SSRS

When i was trying to create a new  folder in a reports documents library, i had this problem :


This error, “Sorry, something went wrong. The aspx_debug attribute on the page directive is not allowed in this page” occurs when trying to create a folder in some types of document libraries, such as the Report Document Library used for SQL Server Reporting Services report documents in SharePoint 2013.
The error comes from some bad /Upload.aspx files that are used by SharePoint 2013.
identifying the upload file for a Report Document Library gives us this standard file path:
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES\ReportsAndDataListTemplates\ReportDocumentLibrary\Upload.aspx
The standard contents:
3-upload_aspxfile
By updating the contents with something that makes more sense we can get the folder creation feature to work again:
workingfilecontents
Do note that all page directives needs to go, and we need to update the UIVersion property from 15 to 4 otherwise we just get new exciting errors.


Wednesday, January 7, 2015

SharePoint Open a closed Web Part

SharePoint Open a closed Web Part

When a web part is closed using the X, the web part is still loaded on the page, it is just not displayed. Resources are allocated that are never used, so she was right in asking the question.
Here are the steps to put a web part back on a page:
  1. Site Actions -> Edit Page
  2. Click Add a Web Part
  3. Click Advanced Web Part gallery and options
  4. Click Closed Web Parts
  5. Drag closed web part onto the page

OPEN LIST ITEM ATTACHMENTS WITH A CLICK ON THE PAPERCLIP

OPEN LIST ITEM ATTACHMENTS WITH A CLICK ON THE PAPERCLIP


Another requirement of one of my users is to open file attachments directly by clicking on the paperclip icon without the detour of opening the item first. Alexander Bautz from spjsblog.com wrote the perfect script for this purpose which you can find here on his blog post. Thanks for that!
However, the last update was from mid 2012 and therefore the latest version is not compatible with SharePoint 2013. I made some minor adjustments to the code to restore the compatibility and I added a fade-in and fade-out animation, as well.
And here is how it will look like: ListAttachments_Featured_Image2
All you have to do is uploading this script to the Style Library (or any other document libary, SVN or the Hive )  and putting the following snippet into a CEWP or Script Editor Web Part on the page where you want to to have this functionality.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="..location of the script here../ListAttachments.js"></script>
<script type="text/javascript">
var argObj = {hideIdColumn:true,
              clickToOpen:false,
              clickMouseover:'Click to open',
              oneClickOpenIfSingle:true};
</script>
The four options you can see in the snippet above are as follows:
  1. hideIdColumn: Defines whether the ID column will be hidden or not
  2. clickToOpen: Defines whether you have to click in the paperclip in order to see the list of attached files or not
  3. clickMouseOver: Defines the text in the tooltip when you hover your mouse over the paperclip
  4. oneClickOpenIfSingle: Defines if an attachment is directly opened or not if it is the only attachment of the list item
Have fun with the script!
To Download the latest version : Attachement Script

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing

Sharepoint Designer 2013, XSLT List View Options ribbon option is not showing I have an ordinary Wiki Page, also tried making an Article...