Item12172: Add row display options to attachtables template.
Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: trunk
If you want to display attachments as a grid, you should have the possibility to create a row for each 3 or 4 attachments. Currently this is only possible using javascript.
This adds the following tags to the attachtables template:
Tag |
Description |
%A_COUNT% |
The sequential attachment number (starting with 1) |
A_COUNT
is not strictly necessary to draw rows, but it may be useful anyhow.
Two additional helper tags are expanded:
Tag |
Description |
%R_STARTROW_N% |
(where N is the desired number of attachments in a row); true if a new row should be started. Usage:
%IF{
"'%R_STARTROW_4%' = '1'"
then="<div class='row-fluid'>"
}%
|
%R_ENDROW_N% |
(where N is the desired number of attachments in a row; true if a row should be closed. Usage:
%IF{
"'%R_ENDROW_4%' = '1'"
then="</div>"
}%
|
--
ArthurClemens - 21 Oct 2012