This question about Configuration: Answered

SELECT and DISPLAY_IF in configure?

Slightly wierd from someone in the depths of configure internals, but I would rather ask than sink deeper smile

DISPLAY_IF (in .spec files) seems like a great way to simplify the interface. I can see that DISPLAY_IF {checkbox} does what's expected: display the item iff the box is checked.

I have a more interesting case (in off-line tasks). I have a selectbox that determines whether bunches of items matter. I'd like selection changes to rearrange what's displayed to match.

Can I say DISPLAY_if {select}=value? Or values? I tried to figure it out, but got lost in the perl/javascript maze.

If not, it would be a handy addition...

-- TimotheLitt - 11 Oct 2012

DISPLAY_IF is designed to interpret it's parameter using an eval, after expansion of anything in curly braces to a $Foswiki::cfg reference. This appears to be broken by the latest code, or maybe I'm missing something.

-- CrawfordCurrie - 24 May 2013

 

QuestionForm edit

Subject Configuration
Extension
Version
Status Answered
Related Topics
Topic revision: r2 - 24 May 2013, CrawfordCurrie
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