mxgs
i had text content wrapped in an accordion plugin, and i did want it on the pdf, so i just reused the default regex and put the \{\w+[^\}]*\} and \{/\w+[^\}]*\} tags on separate lines.
if anyone is interested, i've implemented a little tweak to shorten the list names. maybe the value it's set to could be made part of the module params?
this is the hack:
before the line outputting the tag html:
$html .= "\n\t" . $t . "";
i've inserted a call to a function:
if (strlen($t) > 20) {
$t = truncstring($t, 20);
$t = $t."...";
}
where 20 is my chosen numbers of characters after which i wanted 3 dots "..."
i've placed the function truncstring() right after the ending of the selectList() function (which reads
" return $html;
}"
):
function truncstring($string, $length){
settype($string, 'string');
settype($length, 'integer');
for($a = 0; $a
Thanks Max, your efforts are appreciated.
just upload the javascript to your template, together with the x.gif transparent gif, put conditional comments to call up the javascript, et voilà, it works a charm.


