custom(name)
Entity | Value |
---|---|
Attribute(s) | style, href, title, alt, value, name, onclick |
Type | function, value |
Context | document |
Parameters | 1: name custom field |
Result | Value of the custom field |
The function custom returns the value of a custom parameter given with the querystring the URL for viewing the productlist, the shop and / of directly placing an order. In the URL the name of the parameter has to start with custom_ followed by the name and the desired value.
http://www.mijnwinkel.nl/shop1234/productlist?custom_color=yellow&custom_name=Jan%20Klaas
In the example above is shown how the shop 1234 is called with the extra querystring parameter custom_color and custom_name. The example below shows how to access these parameters in a custom layout document.
<span style="myshop-test:{$custom('name')}!=''">
Dear <span style="myshop-eval:{$custom('name')}"/>,
the color you chose is <span style="myshop-eval:{$custom('color')}"/>.
</span>
Post your comment on this topic.