ezsys( system_variable )
Name | Type | Description | Required |
---|---|---|---|
system_variable | string | The name of the desired variable. | Yes. |
This operator gives read access to certain eZ Publish system variables. The "system_variable" parameter must be used to specify the name of the variable that should be returned. As of eZ Publish 4.6 the "ezsys()" template operator now has a new parameter available "querystring". The following names can be used:
Example: news theme installed on server "ez.no", by user "tom" in "/home/tom/public_html/local/ez_publish"
wwwdir - {ezsys( 'wwwdir' )}<br /> sitedir - {ezsys( 'sitedir' )}<br /> indexfile - {ezsys( 'indexfile' )}<br /> indexdir - {ezsys( 'indexdir' )}<br /> magicQuotes - {ezsys( 'magicQuotes' )}<br /> hostname - {ezsys( 'hostname' )}<br /> querystring - {ezsys('querystring')}<br/>
The following output will be produced:
wwwdir - /~tom/local/ez_publish
sitedir - /home/tom/public_html/local/ez_publish/
indexfile - /index.php/news
indexdir - /~tom/local/ez_publish/index.php/news
magicQuotes -
hostname - ez.no
querystring - ?param1=value1¶m2=value2