| Syntax | $getURL{template}[{options}[{key}{value}]*]? |
| Documentation | Constructs an URL to a SITEFORUM template.
As URLs to SITEFORUM templates are usually quite long this
function provides a convenient method for generating them.
It cares about encoding parameters and the resulting string in a
way that it is suitable for common usage.
Paramter:
1: The name of the template the URL should point to.
2: Options (optional). The parameter can be empty or contain the options STATIC and NOESCAPE which may be combined by a separating whitespace.
The options have the following effect:
STATIC: the function will construct a static URL containing protocol, address and port if necessary.
NOESCAPE: Switches of the default replacement of concatenating ampersands by &.
3,4-x,y: Key and value of additional optional URL parameters (called current values).
Returns:
Throws:
IllegalArgumentException - if an unknown option is given or STATIC is requested but no client connection is available (e.g. the function is called by a background process).
|
| Examples |
Test link 1
Test link 2
Static test link 3
|
| Group | Net |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | <unlimited> |