XactCommerce Xact Objects
Home
News
XactCommerce
Typical Applications
Custom Development
Private Backend
XactScript Language
Performance
Deployment
Partners
Portfolio
About Us
leXml Language < Tags < leXml Tag Reference: site

The <_site> tag should be the first tag after the enclosing main root tag of a document. It indicates what site a document belongs to and various other attributes of the document such as templating behavior and special togglable features. The body of a site tag should be empty and is ignored.

Body of the <_site> tag:

    None

Attributes of the <_site> tag:

    name=<site name> (Required)
    The name attribute sets the name of the site that this page belongs to. (See site configuration in configuration documentation.)

    pagetemplate=<number of seconds template lasts> (Optional)
    The pagetemplate attribute turns on templating for this page and specifies how long in seconds a template is valid for. Templating only makes sense for pages that don't depend on special state information. Examples of pages where templating makes sense includes front pages, item browse pages, article lists, etc. Templating would not make sense for pages like order forms, shopping carts, etc. If pagetemplate is not present or is set to 0, templating is turned off. This is the default behavior.

    pagefeature=<toggleable feature list> (Optional)
    The pagefeature tag turns on special toggleable page features. Each feature is represented by a character that if present in this attribute turns the feature on. The only feature currently toggleable isevaluate native tag arguments which is represented by the letter "n". If this feature is turned on, variable evaluations and module invocations ($var or !module:command) may be used inside the attributes of native tags.

    (e.g. <input type="hidden" name="password"
    value="!modname:getpassword:uid=$uid"/>
    )

    This should only be turned on if necessary since this slows things down a little.

Examples of the <_site> tag:

    <_site name="sitename" authcode="authcode" pagetemplate="600"/>



    <_site name="widgetsinc" authcode="widg" pagefeature="n"/>