samvaarv
Please read the documentation before asking these types of questions - the information you require can be found there or directly in the snippet file
You are not calling the field correctly
The following is from the snippet code:
/**
* DocInfo
*
* @category parser
* @version 0.4.1
* @license GNU General Public License (GPL), http://www.gnu.org/copyleft/gpl.html
* @param string $field Значение какого поля необходимо достать
* @param int $docid ID документа
* @param int $templid ID шаблона документа
* @param int $limit Максимальная глубина вложенности для поиска по шаблону документа
* @param int $tv является ли поле TV параметром (0 - нет || 1 - да)
* @param int $render Преобразовывать ли значение TV параметра в соответствии с его визуальным компонентом
* @return string Значение поля документа или его TV параметра
* @author akool, Agel_Nash <Agel_Nash@xaker.ru>
*
* @TODO getTemplateVarOutput не применяет визуальный компонент к TV параметрам у которых значение совпадает со
* значением по умолчанию
*
* @example
* [[DocInfo? &docid=`15` &field=`pagetitle`]]
* [[DocInfo? &docid=`10` &field=`tvname`]]
* [[DocInfo? &docid=`3` &field=`tvname` &render=`1`]]
* [[DocInfo? &docid=`3` &templid=`2` &field=`tvname` &limit=`2`]]
*/
Note the examples at the bottom