Make Title column a link

It has been driving me nuts that you have to have a Name column, so you have a link to the files, as well as a Title column, so you know what you are actually clicking on. I found a tutorial for changing a column into a link but it also changed the text of my Title into the link text. So… I copied the code that was generated by that little experiment, grabbed the url that it wrapped, and then added that url around the Title code. Success!

Step By Step:

  1. Create a webpart page and insert your library
  2. Open page in SharePoint Designer
  3. Right-click on the library and select “Convert to XSLT”
  4. Find a Title in the code and wrap it with this url:
  5. titlelink

  6. Now you can delete the Name column: Common DataView tasks > Edit Columns.
  7. Save and preview-Title is now a link and no Name column!
  8. Advertisements

4 thoughts on “Make Title column a link

  1. Hey, this is super useful. I’d like to point out that it is curly bracers around the @FileRef, not parenthesis. This makes a difference, and on my screen I saw parenthesis at first.

    Thanks for your help!

  2. Probably a stupid question from someone fairly new to designing for SP, but when I try to open the page in SP Designer, it opens the corresponding page layout, not the actual web part page I created and inserted the library into. What am I missing here?


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s