Showing posts with label Document Library. Show all posts
Showing posts with label Document Library. Show all posts

Thursday, January 31, 2013

Adding a Description Column for a folder under Document Library

  • Go to Site Actions, Site Settings
  • Click Site Content Types
  • Click Create
  • Give the new content type a name such as "Description"
  • Set the parent content type group as Folder Content Types
  • Set the parent content type to Folder
  • Add the new content type to a Group. I put it back in the "Folder Content Types" group
  • Click OK
  • Scroll down to the columns section and click Add from new site column
  • Name the column and set all the usual column options
  • Repeat for any additional columns
  • Click OK
  • Go to your document library
  • Click Settings and Library Settings, or in 2010 click the Library ribbon tab and then click Library Settings
  • Click Advanced and set Allow management of content types to Yes and click OK (this may already selected)
  • Scroll down to Content Types and click Add from existing site content types and add your new folder content type
  • Go to your document library and click the New drop down, or the New button in the 2010 Document ribbon, and add your new folder!
  • Go to the View drop down and click Modify this view and add your new folder meta data columns (you will probably want to move them to just after the Name column)

Wednesday, May 30, 2012

Use Central Administration to export a site, list, or document library in SharePoint Server 2010

Follow below steps to export a site, list, or document library by using Central Administration
  • In Central Administration, on the Home page > Backup and Restore.
  • On the Backup and Restore page > Granular Backup > click Export a site or list.
  • On the Site or List Export page,
  • In the Site Collection section, select the site collection from the Site Collection list, and then select the site from the Site list.
  • If you are exporting a list, skip this step, Select the list or document library from the List list.
  • In the File Location section,
  • In the Filename box, type the UNC path of the shared folder and the file to which you want to export the list or document library.
  • The file name must use the .cmp extension.
  • If the file already exists and you want to use this file, select the Overwrite existing files check box.
  • Otherwise, specify a different file name.
  • If you want to export all the security and permissions settings with the list or library, in the Export Full Security section, select the Export full security check box.
  • If you want to specify which version of the list or library to export, select one of the following versions from the Export versions list:
  • All Versions
  • Last Major
  • Current Version
  • Last Major and Last Minor
  • Click Start Export.
  • You can view the status of all backup jobs at the top of the Granular Backup Job Status page.
  • You can view the status of the current backup job in the Content Export section of the page.
  • The status page updates every 30 seconds automatically.
  • You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the backup to start.

Tuesday, December 13, 2011

How to: display files extensions in SharePoint Document Library

There are 2 ways to show file extensions in a SharePoint document library


Method1:
  • Convert the document library List View web part to a XSLT dataview
  • Open the document library with FrontPage,
  • Right click and convert to DataView.
  • Modify the XSLT to add select=”@File_x0020_Type”/>


Method2:
  • Modify the display pattern in ONET.XML
  • Add
  • Name=”File_x0020_Type”/>
  • Before
  • Name=”Created_x0020_Date”>.
After making a change to ONET.XML you have to do IISRESET.

Tuesday, August 23, 2011

Upload files from local machine to SharePoint document library Automatically (DOS command)

From research I have found so many ways to upload files / documents from File server or from local desktop to SharePoint document library. There are lots of JavaScript available to achieve this goal.
But using these methods end user definitely becomes crazy.
Here I have used a very simple method which automatically uploads document from source folder to SharePoint document library.
Following steps we have to implement to use this method.
·        On your machine map a SharePoint site, make sure to create a mapped drive of SharePoint site (not a network place)
·        This will assign a letter to site (i.e. Z), and this will create a SharePoint site as a folder.
·        So now we have “Z” drive which contains our SharePoint site and all its content and when you navigate to any of the content make sure it will open a folder with “z:\content folder” (as simple as opening a local folder in C / D drive)
·        Now we have two local drives one is Source folder and one is SharePoint site.
·        Now run following command to check whether we are able to copy documents from one location to another (From local source folder to SharePoint site)

COPY “sourcefolder\filename” “destination (SharePoint Site)”

Copy c:\Pratik\*.* z:\Documents

·        (Above command will copy all files from “C:\Pratik” folder to SharePoint site)
·        If this will be done successfully then simply create a batch file which copies documents on a click
·        And to make this click automated put that batch file in windows task scheduler so that @ a specific time frame it will run and picks up document from local source folder and uploads it to SharePoint site.
·        You might face some issues while making map drive, to resolve it follow these steps
On Windows XP machine
·        Right click “My Computer” > Map Network Drive
·        It will open a wizard, provide SharePoint site name with UNC path (i.e file://servername/folder)
·        If you will get any error please chec webclient is activated on the machine.
On Windows 7 machine
·        Right click “My Computer” > Map Network Drive
·        It will open a wizard, provide SharePoint site name same as you provide in explorer address bar (http://sitename/)
Suggations and feedbacks are always welcome J. Feel free to reach me n case of any issues.

Tuesday, May 24, 2011

Auto forward Emails from Outlook to SharePoint Document Library

Some days before one of my client wanted to auto forward outlook emails to one of SharePoint document library. I ran through following steps to achieve the given task.
  • Make sure Target Doc Lib contains Email address and it’s working
  • Then go to Outlook and click on New > Contact
  • Add Email address of that document library into the Outlook Contacts.
  • Save it and now create a rule from Outlook > Tools > Rules and Alerts > New Rule
  • Select “Start from a blank rule” option.
  • Select Check messages when they arrive > Next
  • Select “Condition” for which you want to forward emails to Doc Lib in step 2.
  • Then select action “forwards it to people or distribution list” and click on people or distribution list
  • Select “Outlook Address book” from Address Book drop down and you will getSharePoint Document Library email address as a contact > Add it
  • Click on Next > Finish
Now send an email with that condition to check rule.
Feel free to ask me if you have any questions.

Friday, March 25, 2011

Distorted Toolbar or No Toolbar in Document Library

Issue:

Sometimes back I have found very interesting issue on one of my document library.

Even if I login through system account, not getting menu bars icons.

This is only with a specific document library, if I create a new document library all menu icons were available.


Resolution:
  • As per the missing list toolbar, please go to SharePoint Designer 2007
  • Open the view page includes this list view web partRight click that web part > Convert to XSLT List View Web Part
  • Right click the web part again > Data View Properties > General Tab > enable "Show List Toolbar"
  • Verify "SharePoint List Toolbar" must be checked.
 And here is the toolbar


If all these don't work replace working Allitems.aspx page with faulty one.


In addition you can customize toolbar using above steps.

Popular Posts

Disclaimer

The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.