Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

viewby

Generates the current template tag to be applied to the page

Example

[%viewby type:'products'/%]

Usage

The above result would print gallery by default, which is neto's default name for the template.html thumbnail template. You can change this by either changing the config for the default view type in the webshop config or javascript for having the customer change it in the session like so :

href="javascript:viewtype('list');"

Parameters

Name Options Description
type:'' products Specifies the type of content you are loading the default template for, currently products is the only option.
value:'' gallery, list By default it loads the DEFAULT_THUMBVIEW webshop config, but can be forced to load specific values.