This question about Using an extension: Asked

Can I modify column widths in actionsearch

Hi there,

I was wondering if there is a way to format column widths in the %ACTIONSEARCH% output without loosing the cool action formatting. I tried using %TABLE{columnwidths="30%,30%,40%"}% before the actionsearch, but with no results. I tried using the nohtml="on" option but the header dissapears, as well as the state formatting.

I find this useful when I have more than one table in the same topic: All the tables would render with same column widths.

Thanks, -- AlexWayne - 27 Aug 2011

I'm surprised the %TABLE macro doesn't work - that's what I would use. Without setting up a detailed testcase and working through it myself, I can't be sure, though. Anyone else tried this?

-- CrawfordCurrie - 13 Feb 2012

Hi there,

I prepared a test case to clarify my question:

%ACTION{ state="open" }% 1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non enim vitae ante porta imperdiet ut feugiat ante. Maecenas vitae. %ENDACTION%
%ACTION{ state="closed" }% 2Lorem ipsum dolor sit %ENDACTION%
%ACTION{ state="open" }% 3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam imperdiet nunc vel est ultrices eu mattis augue pellentesque. Donec pellentesque metus vitae nunc vestibulum aliquam. %ENDACTION%
%ACTION{ state="closed"}% 4Lorem ipsum dolor sit %ENDACTION%
%ACTION{ state="open" }% 5Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam non enim vitae ante porta imperdiet ut feugiat ante. Maecenas vitae. %ENDACTION%
%ACTION{ state="closed" }% 6Donec pellentesque metus vitae nunc vestibulum aliquam. %ENDACTION%

---+ Open Actions

%TABLE{columnwidths="30%,70%" tablewidth="100%"}%
%ACTIONSEARCH{ format="| $who %BULLET% $topic |$text $link| " header="| *Action for %BULLET% Topic* | *Issue* |" state="open" topic="%TOPIC%"}%

---+ Closed Actions

%TABLE{columnwidths="30%,70%" tablewidth="100%"}%
%ACTIONSEARCH{ format="| $who %BULLET% $topic |$text $link| " header="| *Action for %BULLET% Topic* | *Issue* |" state="closed" topic="%TOPIC%"}%

Notice how the Closed Actions, even though it has column widths specified, does not look the same as the Open Actions. Please see screenshot below. I am using Google Chrome. For presentation purposes, it would look better if both tables have the same width. Aesthetics only.

Screen shot 2012-02-14 at 11.38.28 AM.png

Thanks, -- AlexWayne - 14 Feb 2012

QuestionForm edit

Subject Using an extension
Extension ActionTrackerPlugin
Version Foswiki 1.1.3
Status Asked
Related Topics
I Attachment Action Size Date Who Comment
Screen_shot_2012-02-14_at_11.38.28_AM.pngpng Screen_shot_2012-02-14_at_11.38.28_AM.png manage 108 K 14 Feb 2012 - 19:56 AlexWayne  
Topic revision: r3 - 14 Feb 2012, AlexWayne
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