LassoScript Utility
Basics Browse Detail

[Define_AtBegin]

Tag Link [Define_AtBegin] Category Technical
Type Substitution Source Available No
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0

Description

[Define_AtBegin] defines a tag, type, or compound expression that should be invoked prior to processing each page in the current site. At-begin procedures should be installed in LassoStartup. The at-begin procedures will be called in order prior to processing any code in the current page. They can be used to modify variables, define tags, or otherwise alter the environment in which the page will be run, but cannot be used to modify the LassoScript source code that will be run.

The URL rewrite feature of Lasso provides a front-end for installing pre-process actions in a site. Visit the Setup > URL Rewrite section in Lasso Site Administration and see the section on URL rewrite in the Lasso Setup Guide for more information.

Note - If tags are defined in a pre-process action the code should be surrounded by [Namespacing_Using: '_page_'] ... [/Namespace_Using] tags in order to ensure that the tags are defined within the page's local namespace rather than globally.

Syntax

[Define_AtBegin: TagName]

[Define_AtBegin: { ... Compound Expression ... }]

Parameters

Required Parameters
Tag The tag reference, data type, or compound expression to be executed.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.