bttwog hi. i have one question regarding the snippet.
i am using it for several things to print on my page.
one is for normal content printing. but when i want to use it for variable printing it does not works.
how can i change the snippet code and get variable such date or something else be printed.
Case: i am using on mypage several things:
pagetitle is ok
content is ok
description is ok
date [+date+] does not works
ingredients [+ingredients+] does not works
i have instead of
$q = $modx->db->select('*', $modx->getFullTableName('site_content'), 'id = '.(int)$_GET['p_docid'].' LIMIT 1');
$rec = $modx->db->getRow($q);
used changed code:
$q = $modx->db->select('*', $modx->getFullTableName('
site_tmplvar_contentvalues'), '
value = '.(int)$_GET['p_docid'].' LIMIT 1');
$rec = $modx->db->getRow($q);
it is possible to get variable to be printed or show in print page?
thanks