Is it possible to include a Folder Content Type as the default content , when a new instance of Document Set content type is created ? If so, how can we do this?
View Complete Post
I been trying to add new custom folder content type to the document library programatically in my sandbox environment and it does show up on the document library. But, when I move same code to the almost similar configured SP2010 environment, adding
new folder content type to the document library doesn't show up on the document library's new menu.
Here is the code? Since this code works fine in my sandbox environment, is there any other settings I should check on the server environment which would cause hiding content type on new menu of document library.
static void Main(string args)
SPSite spSite = new SPSite("http://sp2010vm");
foreach (SPWeb spWeb in spSite.AllWebs)
spWeb.AllowUnsafeUpdates = true;
//For each site, cycle through lists
bool isDocLibraryExists = false;
foreach(SPList spList in spWeb.Lists)
if(spList.Title == "Classified Documents")
isDocLibraryExists = true;
if(isDocLibraryExists == true)
//Create new doc library
SPList splist = spWeb.Lists["Classified Documents"];
//Create Content Type
SPContentType documentContentType = spWeb.AvailableContentTypes["Classified Documents Folder"
I have a situation that has foxed me!! I have a site level content type that has 8 fields... I use this to create more content types at the site level and use these in multiple Document Libraries (I have 40 doc libs). This works fine for 38 of
the libraries. But for 2 of them... 2 of the columns are not showing up on the document libraries. These are user lookups fields. I am not sure why it's not working in these libraries only! When I use the same content type in another
library... the inheritance does not break for these fields!
Anyone please provide some guidance on this? I am using WSS 3.0 and SPD to do workflows.
On another note... the content type has a template (in excel) attached to it. When I create the content manually using the content type from the New menu option, the template is used... however, when I try to add it using an SPD workflow, it creates
a blank template... the content type template is not being used.
Please help... I am in a fix and need to release this application today!!!
We have an existing accounting system that produces various reports and spreadsheets on a schedule, which are then emailed out to recipients. Cleverly, email is the _only_ mechanism for delivering the reports out of the system, though I have full control
over the contents of the file produced.
To ensure that the reports end up organised in our sharepoint site, I had imagined adding the content type and other metadata into the spreadsheet, in order that they can be emailed into a drop library and the content organiser can apply rules to
put the files in the right place. As there are a large number of reports, I was thinking that this could lend itself to a common approach, rather than needing to adjust every report individually.
My question is:
- is it possible to apply metadata within the file when it is produced, and have sharepoint pick it up? If so, how do I go about doing it?
I have a couple of infopath forms deployed to sharepoint as content types. Normally, when a user creates a new document of an infopath content type, the form opens in browser mode and ,when the user fills in the form and saves the form, a new document is
created in the document library with the correct icon and progid.
This was before... Now, whenever I save a form, the form submits correctly, i see the file in de document library, BUT it has the icon of an XML document, all the infopath functionality is gone and when I click the file, I get a save as dialog...
The form itself hasn't changed that much and even when I redeploy a version that worked before it still does not work. However, when I create a new doc lib and associate the malfunctioning form there, the behavior is normal and i can still reopen the saved
Little sidenote: I have 7 different forms that now do not work on my test machine. It used to be only one, but after redeploying them, all of them have the same problem. Now when I deployed these forms in a production environement, the same thing started
happening there. So I stopped the deployment and in production there is just the newly deployed form that does not work.
I have already tried reassociating the form to the doc lib. And everything looks normal in central administration.
Been pulling my hair out trying to figure this one and am hoping that you are able to help.
Have been putting together a new SP2010 Standard environment and have gone as far as creating some sites, sub sites and generating Content Types and assigning to Doc Libraries etc.
The problem comes when we are attempting to upload existing Office 2003 files, namely Word .doc files, and only happens on specific libraries, this is not across the board.
When we upload an existing 2003 file to the affected library, we are not able to set any meta data to the file as SharePoint registers the Content Type as a Folder as seen in the properties of the file:
However, if we upload a pre-existing Office 2010 .docx, we get the full array of Meta Data and the correct Content Type has been assigned.
Do any wonderful people have any clues as to what could be causing this?
Thanks in advance
Hello! I want to use a custom workflow,associated with the document content type. But In the doc library when I click on the document-item wich belongs to that content type, the workflow associated with that content type won't
appear. Maybe I missed something.
Any suggestion link, sample would be appreciated.
I have created a Word Template for a Document Library that has an External Data Column in it of Client Name which also adds Client Address1, Client Address2, Client City, Client State, & Client Zip. Now this works fine for a Document library with
that template as the Template.dotx file.
I want to be able to make a bunch of Templates and have them all as Content Types in one Library. When I do this I cannot get the External Data Quick Parts to work.
Anyone have any ideas?
Either I don't know what SharePoint is doing or I don't know what I'm doing (or both, which is more likely).
I'm attempting to create a Custom Document Library template with a custom content type association (Custom Document), all using a feature. When I create
a document library based on the installed template, the content type association is there. However, when I click on New Custom Document, the template.dotx does not reflect the Custom Document content type association. The Word document information panel does
not show any Custom Document content type properties (like Title and Comments).
Here are the steps I've taken:
1. Create the feature.xml with element manifests of contentType.xml and CustomDocumentLibrary.xml
2. Create the contentType.xml (Custom Document) with an additional field reference for Comments
3. Create the CustomDocumentLibrary.xml for the list template
4. Create a Custom Document Library subfolder that contains the same files that are in the 12\TEMPLATE\FEATURES\DocumentLibrary\doclib folder.
5. Edit the schema.xml to use the new content type and field reference
6. Deploy and activate the feature
7. Create a new "Custom Document Library"
8. Go to Custom Document Library Settings and verify the Custom Document content type is being used
9. Click on New Custom D
I have created a content type and added some custom site columns to it. I have also created a document template (.dotx) where I have added some of the columns as fields that appear in the footer and header of the document template.
In the Advanced Settings of my Content Type I have added the .dotx template as the template for the Content Type.
In a document library I added the content type. When I create a document from the content type in that document library the fields on the new document do not get updated when I select different data for any of the columns in the Document Information
Even when I save the document and reopen it the data in the columns on the Header or Footer does not get updated so there is a discrepancy between the data selected on the DIP and what is shown in the Header or Footer.
What am I doing wrong?
Im in the process of moving a network drives content to a new document library.
The network contains all our IT Sarbanes Oxley documentation/checks
Should I create a team site for this network drive and have multiple document libraries?
Or should I create just one document library?
What im struggling with is how to plan andocument library.
currently every morning a member of staff completes a check of server backups.
They modify an Excel spreadsheet which contains a row for each site/server and a column for each day.
This Document is located at O:\IT Procedures Policies & Controls\Controls\KC202 - Monitor Backups
Every month a new Spreadsheet is started which is based on a template.
My first idea was to create a content type for this check called 'KC202' as a template can be assigned then each month the user just needs to hit the dropdown button and then 'new KC202'.
the problem with this is we have 37 folders within 'Controls' ranging from KC000 to KC507 all of which will need template documents (each being Unique)
Then I thought the best idea would be to have a content type for 'Controls' with metadata for the 'KC' number. Whenever a new document is created the user can
I have a document library and i use a custom template "templateA" in it,This also inherits from "Folder" content type. When i'm restoring this template backup file to a new library,It missed the content type "templateA" and appears as "Folder" in all items.
I use a publishing site, and i created the content type in site level, I also created the document library in sub site level where i used the template,
Is there any work arround to get the custom content type in restored Libray.I use moss 2007.