sottwell, thank you for your suggestions!
i have the following problems:
with
phx i am not familiar, but the code you posted is for evolution, right? i don’t know how i would use it with revolution (and i don’t find a documentation?!); perhaps anybody has any idea how to translate it into "revolution"-phx-language? it seems to me this would be the most simple solution.
the
snippet-solution you posted doesn’t work for me. wouldn’t it be possible to work with the snippet WITHOUT using the chunk, means that i use the getTemplateVar to retrieve the value of the variable?
it seems to me slightly complex calling the snippet which calls the chunk which calls the variable. i tried things like the following, but i do not fully understand the concept of the
getTemplateVar-API:
<?php
$output = '';
$tv = $modx->getTemplateVar('pdf_praesentation');
// maybe have to enter something like $tv_content = $tv['value']; but this doesn't work
$output = "<a href='xy/" . $tv . "'>download</a>";
return $output;
?>
so perhaps somebody could help me out with this ... thanks in advance!