ListUrlDir Element
The ListUrlDir element renders the absolute URL of the list's home directory.
Syntax
<ListUrlDir
URLEncode = "TRUE" | "FALSE"
WebRel = "TRUE" | "FALSE">
</ListUrlDir>
Attributes
Name | Description |
---|---|
URLEncode | Optional Boolean. When TRUE, converts special characters, such as spaces, to quoted UTF-8 format (for example, %c3%ab for character ). |
WebRel | Optional Boolean. TRUE if the URL is relative instead of absolute. |
Related Elements
Parent Elements |
---|
ListFormOpening, ScriptQuote, ViewEmpty, XML |
Example
The following example,
<ows:XML>
<SetList Name="Announcements"/>
<ListUrlDir/>
</ows:XML>
renders http://server/Lists/Announcements.
The next example,
<ows:XML>
<SetList Name="Announcements"/>
<ListUrlDir WebRel="TRUE"/>
</ows:XML>
renders Lists/Announcements since the WebRel attribute is set to TRUE.