Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2740
  • Last Modified:

Sharepoint 2010 customize XSLT Listview Web Part

I want to use an XSLTListView web part to present a filtered list of documents. I want the document title, not filename to link to the document.  I know this is possible in XSLT but I'm not sure where to start.
0
daronjsmith
Asked:
daronjsmith
  • 2
1 Solution
 
dp_expertCommented:
Hello

When you have the XSLT Listview web part simply open the "Datasource details" pane. THere you will see list of all the columns and you can see what is the internal name of the column with the title. THen simply replace in the link column the filename to the title and you are done.
0
 
daronjsmithAuthor Commented:
I'm not sure I'm following you when you say "when you have the .. webpart open" do you mean in SPD, visual studio?  I'm not seeing the datasource details pane.

Thank you.
0
 
dp_expertCommented:
I meant the SPD 2010. There is an easier way, without opiening the "Data source details"
First open the page where you have this view.
You need to click on the list view, then in the ribbon pick , in the "List View Tools" pick the "Design" tab
Open "design tab"Turn on XSLT view customization Change to XSLT viewIn the view itself click on the column you want to modify and double click in the object breadcrumb at the bottom the last "XSL:value-of" node.Picking the field to change the sourceNext delete the value ont the "Edit the XPAth expression" and in the "Select field to insert" double-click on the field you want to insert.  
change-field.png
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now