SharePoint Developer Center >
SharePoint Products and Technologies Forums
>
SharePoint - Design and Customization
>
Couple questions about Custom List
Couple questions about Custom List
- I defined custom list based on Customlist template. I defined fields like this:
<Fields> <Field Name="Ilmoitus" ID="{382BE94A-3500-4d42-AFEC-5CE112E055F6}" Type="Text" DisplayName="Ilmoitus" Group="My Fields" Required="TRUE"/> <Field Name="Created" DisplayName="Luotu"/> <Field Name="Nimimerkki" Type="Text" DisplayName="Nimimerkki"/> </Fields>
When I trie to add new item on list.This Title field is always showed.Can any tell me how to hide or remove it ?
Second Question is that. I want to define 'Ilmoitus' field to have multiline text box.How to do that ?
Third and final question.Some reason I cannot edit items on list.Can any one tell why ?
Jouni- Moved byMike Walsh MVPMVP, ModeratorSunday, November 08, 2009 7:48 AMmore customization than programming (From:SharePoint - Development and Programming)
Answers
- Q1:
If you see the Title on Display/Edit/New pages then that means it's coming as a part of your content type. In which case you should define a new base content type with no column. I'm guessing that currently your content type is inheriting from "Item" which includes the "Title"Column. To create your custom base content type go to : \12\TEMPLATE\FEATURES\ctypes and open the ctypeswss.xml. Add your own content type with no entry and base your other content types on that.
If you dont see it on the Display/Edit/New pages and only see it in the List View Webpart, then you just need to modify the Schema.xml of the list definition to remove the Title from the view. (<ViewFields>)
Q2:
Set the type attribute on the field element to Note
Q3:
Add this entry to the <ViewFields> in the Schema.xml file of your list definition. You should be able to see the edit image, but whether you can get to the edit page depends on your security settings.
<FieldRef Name="Edit" />
___
Check out my weblog at: http://sptailors.blogspot.com- Marked As Answer byLambert QinMSFT, ModeratorFriday, November 13, 2009 5:31 AM
- Hi,
I strongly suggest that you post new questions as new threads. That way the title of your question will match the content of your answers + you get faster response.
To answer the question:
The quick & dirty solution would be to locate the file at /_layouts/images/listheadergrad.gif and replace it with your custom image. For changing the color, I'd suggest that you use a software to overlay your desired color on top of the existing image.
Check out my weblog at: http://sptailors.blogspot.com- Marked As Answer byLambert QinMSFT, ModeratorFriday, November 13, 2009 5:31 AM
All Replies
- 1. Title is mandatory field for the list, you will be not able to remove it. You can hide it or rename it.
2.Change the Type to Note from Text for your field.
3.Please check whether the user logged is having proper permissions.
---
Rajesh | My Blog
MCTS - WSS AD, WSS Config, MOSS Config. - Q1:
If you see the Title on Display/Edit/New pages then that means it's coming as a part of your content type. In which case you should define a new base content type with no column. I'm guessing that currently your content type is inheriting from "Item" which includes the "Title"Column. To create your custom base content type go to : \12\TEMPLATE\FEATURES\ctypes and open the ctypeswss.xml. Add your own content type with no entry and base your other content types on that.
If you dont see it on the Display/Edit/New pages and only see it in the List View Webpart, then you just need to modify the Schema.xml of the list definition to remove the Title from the view. (<ViewFields>)
Q2:
Set the type attribute on the field element to Note
Q3:
Add this entry to the <ViewFields> in the Schema.xml file of your list definition. You should be able to see the edit image, but whether you can get to the edit page depends on your security settings.
<FieldRef Name="Edit" />
___
Check out my weblog at: http://sptailors.blogspot.com- Marked As Answer byLambert QinMSFT, ModeratorFriday, November 13, 2009 5:31 AM
- Thanks guys.
I have couple questions more. I need to define add Link list on page when it is created.I know i have to do it in Onet.xml.Can any one help me what i need define and where ?
I have one more. The allitems pages (where is all items of the list) is this toolbar(new,action,setting).This toolbar background color is alway blue.How can I change it ?
Jouni - Hi,
I strongly suggest that you post new questions as new threads. That way the title of your question will match the content of your answers + you get faster response.
To answer the question:
The quick & dirty solution would be to locate the file at /_layouts/images/listheadergrad.gif and replace it with your custom image. For changing the color, I'd suggest that you use a software to overlay your desired color on top of the existing image.
Check out my weblog at: http://sptailors.blogspot.com- Marked As Answer byLambert QinMSFT, ModeratorFriday, November 13, 2009 5:31 AM


