pi parameter and a product index, only the images of this product are loaded; without it, all images in the shop.
You enter the template for this in the shop configuration shop.config in the <ProductsInAction> section for the Gallery parameter. It is included via WS-ExternInclude; the content is placed there within the WS-Include range.
Guide: Offering ProductsInAction
The structure
E-PIA_ENTRIES-EXIST is the outer decision, E-PIA_DATA the loop over the images on the current page.
The outer
{E-PIA_DATA} range keeps the list and its frame off the page as long as there is nothing to display. {E-PIA_ENTRIES-EXIST} above it does the same for sorting and paging, which are also pointless without images.The loop accepts an upper limit in parentheses.
{@E-PIA_DATA(6)} shows at most six images of the loaded page, for example for a teaser on the home page.Sorting and number
Both tags generate a complete
select element including the field name. Whatever is in the parentheses is added as an additional attribute.
Both lists are form fields without their own submit button. In the supplied example, a short script submits the form when the selection changes. A
noscript button next to them keeps the gallery usable without JavaScript.Paging
Paging consists of two groups: range and loop tags that decide which elements appear at all, and single tags that return the parameter suffix for the respective link.The parameter of
ListPagingBefore and ListPagingAfter limits the number of page links to the left and right of the current page. Without a parameter, it is four. The same value belongs in ListPagingMoreBefore and ListPagingMoreAfter so that the ellipsis appears exactly when the link bar actually omits something.All parameter suffixes carry the current sorting and images per page. The visitor’s selection is therefore retained while paging, without you having to do anything for it in the template.
The newest and the best-rated images
E-PIA_AdvData() opens a second, independent excerpt from the image collection. Within the range, {@E-PIA_DATA} returns the images of this excerpt instead of the images of the gallery page.
X is optional and is limited to 1 to 20. Without a value, or with a value outside this range, 20 images are shown.
If there are no matching images, WEBSALE V8s removes the entire section including the heading. You do not need a separate check beforehand.
The tags at a glance
E-PIA_DATA, E-PIA_ENTRIES-EXIST and E-PIA_AdvData() are permitted in the gallery and detail view templates. The sorting and paging tags only apply in the gallery template.
Related topics
- Guide: Offering ProductsInAction
- Reference: ProductsInAction section
- Reference: E-PIA_ (Image data)
- Reference: E-PIA_ (Upload)
- Reference: E-PIA_ (Single view and rating)
