PageUrl Element
The PageUrl element can be used anywhere to return the absolute, encoded URL of the current page.
Syntax
<PageUrl>
</PageUrl>
Attributes
Name | Description |
---|---|
URLEncode | Optional Boolean. TRUE to convert special characters, such as spaces, to quoted UTF-8 format (for example, %c3%ab for character ë). |
WebRel | Optional Boolean. TRUE to specify that the URL is a site-relative URL. |
Example
The following example uses the PageUrl element to return the URL of the current page and surrounds the column title with a link for filtering.
<HTML><![CDATA[ <A ID="diidSort ]]></HTML>
<Property Select="Name" />
<HTML><![CDATA[ " TITLE= ]]></HTML>
<HTML>"Sort by </HTML>
<Property Select="DisplayName" HTMLEncode="TRUE" />
<HTML><![CDATA[ " SORTINGFIELDS=" ]]></HTML>
<FieldSortParams />
<HTML><![CDATA[ " HREF="javascript:" OnClick='javascript:SubmitFormPost(" ]]></HTML>
<ScriptQuote NotAddingQuote="TRUE">
<PageUrl />
<HTML><![CDATA[ ? ]]></HTML>
<FieldSortParams />
</ScriptQuote>
<HTML><![CDATA[ ");javascript:return false;'> ]]></HTML>
<Property Select="DisplayName" HTMLEncode="TRUE" />
<HTML><![CDATA[ </A>]]></HTML>