Sign up for Office 365
Learn more about Office 365
These is a default document library with the option to "Create a new shared document using the Office Web Apps" and icons/links to create a new office document of one of 4 types.
This library available when using "Express Team Site" Template to create a new site.
But for "Team Site" template or any manually added document libraries, this option to "Create a new shared document using the Office Web Apps" and icons/links to create a new office document is not available.
What is the reason behind that and how do you add this option to my manually created document libraries? Its a nice way to create a new document of one of these 4 types in the current folder.
Hi Alex Kap. How good are your SharePoint Designer skills? I looked in to this and was able to get the "share documents with your team on SharePoint" section on to my new document library.
To do it, first I saved out the original document library as a template then created a new document library based on that template. Next, I edited the AllItems.aspx page on the new document library in advanced mode in SharePoint Designer, and added in the custom component that displays the "share document with your team on SharePoint section" which I copied from the original document library AllItems.aspx page.
Perhaps there is an easier way to do this, but if you want to give my method a try let me know and I'll tell you which content to copy across to your new AllItems.aspx page.
Hi Myles,
This makes total sense, thanks for great suggetion. I have created a new library based on the new template as you did above. Then the only difference in the code between the original Documets template and my newly created I see is this line of code
<WpNs0:DocumentLibraryGettingStartedWebPart runat="server" AllowEdit="True" AllowConnect="True" ConnectionID="00000000-0000-0000-0000-000000000000" Title="Getting Started With Documents" IsIncluded="True" Dir="Default" IsVisible="True" AllowMinimize="True" ExportControlledProperties="False" ZoneID="Main" ID="g_6800d3b0_231a_4a39_9c1d_06cada73e4dc" FrameState="Normal" AllowHide="True" SuppressWebPartChrome="False" DetailLink="" HelpLink="" MissingAssembly="Cannot import this Web Part." PartImageSmall="" AllowRemove="True" HelpMode="Modeless" FrameType="Default" AllowZoneChange="True" PartOrder="2" Description="" PartImageLarge="" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{6800D3B0-231A-4A39-9C1D-06CADA73E4DC}" WebPart="true" Height="" Width=""></WpNs0:DocumentLibraryGettingStartedWebPart>
However adding it to the new library code produces this error: "Web Part Error: Unknown server tag." Have I missed somethign else? Thanks!
Continue my way to the perfect document library template :)
Looks like I have missed the register directive:
<%@ Register TagPrefix="WpNs0" Namespace="Microsoft.SharePoint.Spx" Assembly="Microsoft.SharePoint.Spx, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
Now it works, but the formatting is broken and the header text is missing.... Does it need some extra css? Trying to figure it out...
i have inserted some css code in my document library template. Now it looks nice and it is possible to create a custom document library with 4 "create new document button" allowing to work with Office Web App.
Here is the css code:
<style type="text/css"> .esDocLibNewDocument{ float:left; text-align: center; margin: 8px 0px 0px 0px; width: 76px; } .esDocLibNewDocument img {border:none;} .esDocLibSuperHeader{display:none;} .esDocLibTertiaryHeader{display:none;} </style>
Hi Alex. Great, glad you got the formatting sorted. When I added the control in to my new document library the formatting was fine, but then I did create my new library in the Express Team Site, so perhaps the CSS was already there?
I have checked and you are right - Express template does include this css classes. So once you use Express templates no need for extra css. If you use other site templates extra css is needed.
Hi Alex,
I am glad to see that you were able to get assistance from Myles with the coding.
Is there anything else that we can help you with?
Please let us know.
Thanks,
Tim Muth
Microsoft Office 365 SharePoint Support