Display Title Field when uploading a document
I got following question yesterday,
In my sharepoint sites there is a default title field that is created whenever you create a document Library. There are two issues with this field that I am trying to work out.
- Whenever you upload a document, the title field is not available to put information into.
- There is no way to make this title field a required field.
To fix above problem
The title field is defined in the SCHEMA.xml file for the document library type.
Open this file from \1033\sts\lists\doclib locate the line(s): <Fields> <Field Type="Text" Name="Title" ShowInNewForm="FALSE" ShowInFileDlg="FALSE" You will want to change the ShowInNewForm to TRUE to get it to display in the web UI, ShowInFileDLG to TRUE for the browse-using-Office UI. To make it required simply add Required="TRUE"
DisplayName="Title" Sealed="TRUE"></Field></Fields>
3 Comments:
Thank you for posting this tip.
Another perk is that this resolves the issue of when a list is linked
to a document library lookup and only the Title or ID columns are
available for the user to select documents. If the original Title
property in the Document was not reflective of the document purpose it is very misleading for the user using the lookup list.
This did not work for me. I did a spout/spin for my doclibs to sps2k3. Now I can get the title field to show in the view but not on the upload. I edited the following 2 locations but neither one fixed the doclibs I created via spin.
c:\progam files\common files\microsoft shared\web server extensions\60\template\1033\sps\lists\doclib\schema.xml and sts\lists\doclib\schema.xml
->brian
How about changing the Title field so that it links to the item? That would be handy. Then I could have meaningful text for the link instead of the file name.
Is that possible? Or, is there a way to create a custom column that links to the file?
Post a Comment
<< Home