parse

parse

Parses B@se code

Warning

The [%parse%] function should never be used around user accessible fields such as form tags or customer account information. Doing so will expose your site to script injection attacks, allowing users to run arbitrary code on your website (this is very bad).

Only use this function around content that you trust.

Example

Lets say you had a content zone containing some warranty information that you wanted to add to a few product descriptions.

You could add [%content_zone id:'warranty_info'/%] to the product's description field on the cpanel, but this would be escaped by the system and literally just render "" on the front end of the website.

To instruct the system to parse this code from within the products description, the [%parse%] function can be used like so:

[%parse%]
    [@description@]
[%/parse%]

This will parse any B@se data tags or functions within the [@description@] tag.


Was this article useful?

Be notified when this page is updated. Optional.