Get the URL for the Extranet zone (fall back to the default zone if the extranet zone does not exist). Also, display a list of all zones in a SharePoint style table.
Syntax
| URL for Zone | Copy Code |
|---|---|
|
#set( $aam = $alternateUrls.GetResponseUrl($SPUrlZone_Extranet) ) <div style="padding:5px"> <strong>Extranet Zone Url:</strong> #if($aam) $aam.IncomingUrl #else No url zone found #end </div> #foreach($aam in $alternateUrls) #beforeall <table class="ms-listviewtable" cellpadding="3" cellspacing="0" border="0"> <tr class="ms-viewheadertr"> <th class="ms-vh2-nofilter">Incoming Url</th> <th class="ms-vh2-nofilter">Url Zone</th> </tr> #odd <tr class=""> #even <tr class="ms-alternating"> #each <td class="ms-vb2">$aam.IncomingUrl</td> <td class="ms-vb2">$aam.UrlZone</td> #after </tr> #afterall </table> #nodata No alternate access mappings found #end | |
Output
