OK, I give up. How does the Delimiter Output Type for TVs work and what is it for?
I’ve been unable to find any docs on it and my experiments with it have all failed. :’(
-
☆ A M B ☆
- 24,524 Posts
All it does is to replace || delimiters with whatever you’ve specified in the output widget configuration. The parseInput function primarily takes an sql select query result and converts it to a || delimited list.
$value = parseInput($value,"||");
$p = $params['format'] ? $params['format']:",";
if ($p=="\\n") $p = "\n";
$o = str_replace("||",$p,$value);
So, most likely, it would be used with an input type of @SELECT or maybe @EVAL and the output would have to be formatted by a snippet or plugin?
Quote from: OpenGeek at Jun 11, 2009, 11:21 PM
Quote from: BobRay at Jun 11, 2009, 04:15 PM
So, most likely, it would be used with an input type of @SELECT or maybe @EVAL and the output would have to be formatted by a snippet or plugin?
Actually, the most common use would be a Checkbox input with multiple input values, which you might return as a delimited list. Which is great for doing things like sending a comma-delimited list of tags to a snippet parameter.
Cool idea. Thanks!