|
site.exist
|
| |
|
description
Tell if a site exists.
privilege-required
anyone
tx-support
true
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| site |
string |
none |
true |
Site subdomain name (match a specific regexp defined in the configuration file). |
| domain-id |
integer |
none |
false |
Domain id of the site (by defaut, the current site domain id). |
|
| |
|
ERROR
|
|
|
| |
|
RESULT
|
|
|
name
|
description
|
| response |
'true' if the site exists. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
Simple site test.
<nvd:variable unset="result"/>
<nvd:command name="site.exist" site="saloon" error-variable="err"/>
<nvd:result name="response" variable="result" />
</nvd:command>
<err><nvd:variable select="err"/></err>
<nvd:if test="result == true">Site exists</nvd:if>
|
|