Quote from: mrhaw at Apr 14, 2010, 11:31 PM
You could use &docid=`[*id*]` in your snippet call
Then in your snippet:
<?php
$output = $modx->db->getValue('SELECT `content` FROM `modx_site_content` WHERE `id` = '.$docid.'');
return $output;
?>
But if the snippet is just going to read current document use no params at all in snippet call!
<?php
$var1 = $modx->documentObject['content'];
$var2 = $modx->documentObject['pagetitle'];
$output = <<<END
<h1>$var1</h1>
<p>$var2</p>
END;
return $output;
?>
http://svn.modxcms.com/docs/display/Evo1/Document+Object
Interesting: http://stackoverflow.com/questions/tagged/modx
First of all, thanks for your repply!

Well, i had already tried that, but we have here a little problem,
and if the content has snippets? Using that way, it will show snippet call
and not the result of the snippet call. :s
I need this because i have a template called "ToPDF", and i have some pages
that will be printed in pdf, so, this is the easer option.
EDIT: the code of the template is some like this:
[!topdf? &content=`[*content*]`!]
Sorry for the english, i hope you understand it.