You are here: Foswiki>Tasks Web>Item12172 (05 Jul 2015, GeorgeClark)Edit Attach

Item12172: Add row display options to attachtables template.

Priority: Enhancement
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Branches: trunk
Reported By: ArthurClemens
Waiting For:
Last Change By: GeorgeClark
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:
    "'%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:
    "'%R_ENDROW_4%' = '1'"

-- ArthurClemens - 21 Oct 2012


ItemTemplate edit

Summary Add row display options to attachtables template.
ReportedBy ArthurClemens
Codebase trunk
SVN Range
AppliesTo Engine
Priority Enhancement
CurrentState Closed
Checkins distro:b7801ba1fead
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches trunk
trunkCheckins distro:b7801ba1fead
Topic revision: r4 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy