Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I change the column in a SharePoint list that has the link to the item and the link to the item with edit menu eg:

Title (linked to item) Title (linked to item with edit menu)

I want to have a different column with the link. I want to do this without any workaround like renaming the Title to the other column that I want and copying the content into it.

Thanks

share|improve this question
add comment

3 Answers

Do you try this solution? In this solution you should modify field declaration on a view through SharePoint Designer.

share|improve this answer
    
That does the trick, thanks –  Carel Dec 7 '12 at 12:08
add comment
up vote 6 down vote accepted
  1. Open the AllItems.aspx page for the specific list.
  2. Search for the <ViewFields> tag
  3. List item LinkToItem="TRUE" to whichever column you want the link:

    < ViewFields>
    < FieldRef Name="Attachments"/>
    < FieldRef Name="LinkTitle"/>
    < FieldRef Name="linkThisColumn" LinkToItem="TRUE"/>
    < FieldRef Name="data_x0020_column"/>
    < FieldRef Name="Another_x0020_column"/>
    < /ViewFields>

share|improve this answer
add comment

You can use LinkToItem, LinkToItemAllowed and ListItemMenu properties of SPField. If you want field to show link to item's display form you need to set LinkToItem property to true and LinkToItemAllowed property to Allowed. If you want to add context menu to field you need to set ListItemMenu to true.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.