I want to filter my dataview by url.
Path to the publishing page with the Layout:
In the Sharepoint Designer Layout of the dafault.aspx I inserted a Dataview with a list in which the Customer information looks like this, there is also a field with the path to the Dashboard:
company: exampleA Street:street1 pathtodashboard: exampleA
So I want to display only the exampleA's information in the default.aspx
What I have done, I made variables to get the URL path after "customers":
<xsl:variable name="custompath1" select="substring-after($CurrentUrl, 'customers/')"></xsl:variable> <xsl:variable name="custompath" select="substring-before($custompath1, '/')"></xsl:variable>
So when I made the output
<xsl:value-of select="$custompath"/> it takes the correct path "exampleA".
So how can I filter my dataview of the customer list, just to select the customer "exampleA"?
It doesn't work with the filter GUI.