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

4 Answers 4

up vote 12 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><br/>
    <FieldRef Name="Attachments"/><br/>
    <FieldRef Name="LinkTitle"/><br/>
    <FieldRef Name="linkThisColumn" LinkToItem="TRUE"/><br/>
    <FieldRef Name="data_x0020_column"/><br/>
    <FieldRef Name="Another_x0020_column"/><br/>
</ViewFields><br/>
share|improve this answer

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

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

If you're trying this for SharePoint 2013, change "LinkToItem" to "linkToItem"

<ViewFields><br/>
    <FieldRef Name="Attachments"/><br/>
    <FieldRef Name="LinkTitle"/><br/>
    <FieldRef Name="linkThisColumn" linkToItem="TRUE"/><br/>
    <FieldRef Name="data_x0020_column"/><br/>
    <FieldRef Name="Another_x0020_column"/><br/>
</ViewFields><br/>
share|improve this answer

protected by Community yesterday

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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