We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53376
    • 32 Posts
    $resource->process();
    $resource->_output = $resource->_content;
    $modx->getParser();
    $maxIterations= intval($modx->getOption('parser_max_iterations', null, 10));
    $modx->resource =& $resource;
    $modx->parser->processElementTags('', $resource->_output, true, false, '[[', ']]', array(), $maxIterations);
    $modx->parser->processElementTags('', $resource->_output, true, true, '[[', ']]', array(), $maxIterations);
    echo $resource->_output;


    This code prints resource with processing modifier tags, but only TV fields (e.g.: [[*image]]) stays empty with no content. For example,
    ~1[[*mytv]]2~ goes ~12~. How to fix it?

    UPD: Fixed by move line 5 to top [ed. note: i_am_bars last edited this post 6 years, 9 months ago.]