Struggling to get the page header as a variable into a List view Web Part query, code below, note that i want the header above the main content area, not the actual HTML title (it is different) pic below.
The Query works fine if i type the page header in manually, so the data is there just need to insert some code that pulls the page header to string:
<Query> <Where> <Eq> <FieldRef Name="Client_x0020_Code"/> <Value Type="Text">THIS TEXT NEEDS TO BE A VAR</Value> </Eq> </Where> </Query>
Have tried like pasting in
<SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/>
But it breaks the page.