shop.config in the <ProductsInAction> section for the Upload parameter. It is included via WS-ExternInclude; the content is placed there within the WS-Include range.
This page describes the tags that are only available in this template.
Guide: Offering ProductsInAction
Is this visitor allowed to upload at all?
E-PIA_UPLOAD-ALLOWED is the first decision in the template. Building a form only makes sense within this range.
The negative range is therefore not an edge case but the normal case for every visitor who is not logged in. Output
E-PIA_ErrorMsg there so the visitor also learns the reason; you can additionally link to the login.The form
The parameter of
E-PIA_HiddenTags() names the action. For the upload form, this is upload; for the rating form in the detail view, rating. Without a parameter, the tag only writes the identifiers and the session key, which is sufficient for a form without its own action, such as the sorting in the gallery.The selection list for the name
E-PIA_UserNameList() builds a selection list with up to two entries: the full name from the customer account and, if the name contains a space, the abbreviated form following the pattern “First name L.”.
This lets customers decide for themselves how much of their name appears below the photo. This noticeably lowers the barrier to participation and is the reason why there is a selection list here rather than a simple input field.
E-PIA_FileMaxSize only outputs the configured number. You write the unit after it in the template.Messages and confirmation
Within
E-PIA_UPLOAD-SUCCESSFULL, the image data tags are also filled, for example E-PIA_FileName or E-PIA_CreateDate. Before that, they do not refer to any image and remain empty.Uploading via AJAX
E-PIA_AJAX encloses the markers with which the supplied JavaScript library inserts the response after submission into the page. The markers only appear in the AJAX call; in the normal page build they are omitted.
The script also expects a variable
actimgVar in the page header containing the permitted formats from E-PIA_FileFormatList and the error texts from the FMSG- tags. The guide shows the complete block.The tags at a glance
E-PIA_HiddenTags(), E-PIA_ErrorMsg and E-PIA_InfoMsg are permitted in all three ProductsInAction templates. The other tags on this page only apply in the upload template.
Related topics
- Guide: Offering ProductsInAction
- Reference: ProductsInAction section
- Reference: E-PIA_ (Image data)
- Reference: E-PIA_ (Gallery)
- Reference: E-PIA_ (Single view and rating)
