New answers tagged xslt-list-view-web-part
Unless I misunderstand, you should be able to create a variable at the template level and pass that down as a parameter to your join filter. Here's a rough example: <xsl:template name="dvt_1.rowview"> <xsl:variable name="ItemID" select="substring-after(@IdeaID., ';#')" /> Personally, I much prefer using the "Related Items" subview than the ...
Edit the page in Advanced edit mode, then in Split mode, click on the XSLTListViewWebPart tag. The List View Tools tab will open. Click on Design > Customize XSLT > Customize Entire View. At this point, the default XSLT code will be shown and you can start editing.
Take a look at SPManager, you can navigate the SharePoint objects and see XML of ListViews, fields etc. Here is the CodePlex page: http://spm.codeplex.com/ And here a direct link to the 2010 version: http://spm.codeplex.com/downloads/get/526736
This is the best and shortest solution Go to Edit web part and select "Miscellaneous" property and click on Server Render checkbox. then you will able to see that in designer hope it helps!
I can't really provide a sensible answer to why this is happening (I can confirm I'm experiencing the same weird behavior. I'm sure this is related to the fact that they cut out the designer part without properly thinking about the consequences this would have had). What I can offer is a dirty workaround that proved to be almost always working in my case. ...
This answer may not fully apply as I was using a ListViewWebPart (not XsltListViewWebPart) but they are similar so it might help. The following code allowed me to use a ListViewWebPart from one site (with the embedded GUIDs in the source code) on a different site collection entirely: listViewWebPart.ListId = theList.ID; listViewWebPart.ViewGuid = ...
I came across this today and found another workaround. When the web part is added to the page it creates a hidden view on the list it is bound to. You can get the hidden view and make the changes to it directly. This works for announcements, calendars and doc libraries from what I have tested so far. Example: private static void AddWebPart(Web web, ...
When you say "different XSLT Definition", do you mean the view or the XSL ? If you mean the view: XSLTListViewWebParts, if they're pointing to a list (because Document Libraries seem to act up apparently) can be pointed to one of the List's views. This way you don't have to define the view on the webpart. You can set it like so: webpart.ViewGuid = ...
Top 50 recent answers are included