2

I am using sp2010. I have a document library with some columns. I see the column name with a link to the document. But I would like to implement this on the title column. Is it possible to implement a link to the document from the title column?

1

or just edit view aspx in designer and add linkToItem="TRUE" for the desired column

example:

<ViewFields>
                <FieldRef Name="DocIcon"/>
                <FieldRef Name="Title" linkToItem="TRUE"/>
                <FieldRef Name="field3"/>
                <FieldRef Name="field4"/>
                <FieldRef Name="field5"/>
</ViewFields>
0

when uploading documents there is already an ootb column that is called Name that links to the document, either in the default view change the name as visible (ticked) and hide the title (untick). That will only show the name.

You can have both shown, to make the first column as clickable (linked) than within the view also set the Name column and 1 on the list.

enter image description here

  • 1
    I dont want to use the name column because it is not user friendly (example: summary_report-2014.pdf). I would like to make the title clickable because it is user friendly (example: Summary Report 2014). – Ola Aug 12 '14 at 11:09
  • that isnt an easy task but if you want than follow this: codeproject.com/Articles/424763/… – Ali Jafer Aug 12 '14 at 12:26
  • only other method is to use jquery, you would need to have some logic so it knows what level the item is on, take from col one(Title) and replace the text on col 2(Name) but keeping the url inplace! this would be done on page load.... if i get time i could write it out but im a bit bussy atm – Ali Jafer Aug 12 '14 at 12:29
0

You can't do exactly what you're asking out of the box. You could, however, use SharePoint Designer to create a DataView that has a column containing the Name hyperlink and the Title text value. If you want the clickable link to be available in standard views, you could create a new hyperlink field using a workflow to set the value from Title and Path.

  1. Create a hyperlink field
  2. Create a workflow that runs on create and change (assuming users are allowed to change Title and that the hyperlink field will need to be updated at that time)
  3. Set a variable to [%Workflow Context:Current Item URL%], [%CurrentItem:Title%]
  4. Set your hyperlink field to your variable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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