Sharepoint 2010 List Link to Item using another column other than Title

Normally a Sharepoint list links to an item using the “Title” field.

But in some cases you do not want to use the “Title” field, in other words it’s not required in your list.

You can hide the “Title” field first by going to List Settings > Advanced Settings > Content Types > set Allow Management of Content Types to Yes. This will open Content Types under the List Settings.

Then go back to the List Settings > Content Types > click on Title and set it to Hidden.

Now to link the Item to a specific column/field, you need to open the list in SPD and edit the view AllItems.aspx in Advanced Mode, then look for the following tags:

<ViewFields>
<FieldRef Name="Field1"/>
<FieldRef Name="Field2"/>
<FieldRef Name="Field3"/>
<FieldRef Name="Field4"/>
<FieldRef Name="Field5"/>

Let’s say you want the Item to open when you click on “Field1″. Just add LinkToItem=”TRUE” tag on it:

<ViewFields>
<FieldRef Name="Field1" LinkToItem="TRUE"/>
<FieldRef Name="Field2"/>
<FieldRef Name="Field3"/>
<FieldRef Name="Field4"/>
<FieldRef Name="Field5"/>

Save it and you’re done.

This entry was posted in Computer/IT, HowTo and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Michal Beza
    Posted March 21, 2013 at 23:18 | Permalink

    Hi
    I suppose that SPD stands for SharePoint Designer, so where can I find in SPD those tags you mentioned? I opened my list in SPD but all I see is some GUI setting, no code with tags..
    Thank you
    MB

    • Posted March 26, 2013 at 07:37 | Permalink

      Hi Michal,

      Thanks for your comment. Sorry for not making it clear in my post.

      You have to open AllItems.aspx view on SPD and that’s where you can see the tags.

      I have updated the post thanks to your comment :)

  2. Ron K
    Posted March 29, 2013 at 22:53 | Permalink

    Hi Jed:
    When I go back to List Settings > Content Types to hide the Title column all I see is “Item”. Nothing else is listed. Any thoughts? Could it be my access privileges?
    Thanks!
    Ron

Post a Comment

Your email is never published nor shared. Required fields are marked *

Connect with Facebook

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>