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

I'm using SharePoint 2013. I have a custom list and a custom Content Type.

I have edited the view and deactivated the title column because I don't use it. I now miss a column with a link to the DispForm.aspx like in the title column did.

How can I add a column in my view with a link to the DispForm.aspx?

I'm already using the column "Edit (link to edit item)". But this is going to the EditForm.aspx. I don't want the edit form but would like the displayform.

This is the link on the column "Title (linked to item with edit menu)":

share|improve this question
add comment

1 Answer 1

I found the answer my self. I would like to share it with you:)

Open the AllItems.aspx page for the specific list. Search for the tag 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>

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.