Start page
Start page
Start page

Start page / Template development / Scripting / Making scripts / Context / server

Server script

The Server context can be used to access information and methods made available by the FIRSTspirit server.

The Server context includes the generation, preview generation, deployment, interval-controlled task control and access control.

However, changes to input components, menu-controlled generation of contents, etc. do not belong in the server context but instead are covered by the Client context.

Server-end scripts can be used to realise advanced functions or to modularise templates.

Typical examples of server-end scripts are:

  • the manipulation of character strings
  • Execution of arithmetical operations (calculations)
  • Modification of the generation context

Generation script

A generation script can be used to access the information available at the time a preview/generation is generated, contents can be automatically generated, e.g. from the Content Store, etc.

The automatic generation can, e.g. depend on terms or be linked to conditions (e.g. date).

Generation scripts are therefore primarily used to simplify template development.

Type

Context

Template

'GenerationScriptContext'

   

Deployment script

A Deployment script can be used to influence the deployment (publication), e.g. copy and delete files, generate password files, etc.

Type

Context

None

'DeploymentScriptContext'

   

ScriptService script

A ScriptService script is a script which is executed interval-controlled by the FIRSTspirit server and is part of the ScriptService.

The purpose for using such a script can be, e.g. sub-site deployments, backups, etc.

Type

Context

None

'ScriptServiceScriptContext'

   

Special scripts

Special scripts cover special aspects of FIRSTspirit.

PermissionService script

A PermissionService script is used to generate user group files from a database structure for the permissions input component.

It is executed by the FIRSTspirit server on an interval related basis.

A PermissionService script is part of the PermissionService.

Type

Context

None

'PermissionServiceScriptContext'

   

© 2005 - 2012 e-Spirit AG | All rights reserved. | Last change: 24.01.2012