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.

sortby

Generates the current sort value to be applied to the page

Example

[%sortby type:'products'/%]

Usage

The above result would print popular by default, which is neto's default sort option for the product lists. You can change this by either changing the config for the default sort order in the webshop config. Keep in mind that this just changes the default, so if you specify a sort order using the sortby:'' param on the thumb_list this will override your page sortby.

Parameters

Name Options Description
type:'' products Specifies the type of content you are loading the default template for, currently only "products" is supported.
value:'' name, SKU, brand, lowest_price, highest_price, largest_item, smallest_item, longest_item, shortest_item, sortbycol, wishlist, popular, sortorder, sortorder_price, sortorder2, sortorder2_price, sortorder_sortorder2, subtype_sortorder2 Forces the value printed, by default it loads the webshop "Default_thumbsort" config.

1 related articles found: