request
Information about the current URL requested by the user and the associated page. The object can be used to retrieve information about the current request.
Properties
Whether the request originates from the theme editor.
true: The request originates from the theme editor.false: The request does not originate from the theme editor.
You can check whether the request originates from the theme editor based on this property, and control theme behavior accordingly. For example, you can prevent script tracking to avoid tracking session data when the theme is visited from within the theme editor.
The domain name of the request.
The protocol and host of the request.
The type of page being requested.
The path of the request.
The text direction of the page content.
The language of the requested page.
Example
The following example checks whether the current page is being viewed within the theme editor in the SHOPLINE Admin based on the request.design_mode property, allowing you to control the display behavior of components in different access modes.
{{#if request.design_mode}}
Now in online store design mode
{{#else/}}
Now in front-end user access mode
{{/if}}