We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18830
    • 161 Posts
    Hi,

    long times ago wink I wrote an Evo plugin for the Smartypants parser to get fine typography without using RTE. (Which I don’t like). Now it’s time for me to switch for Revo - but I can´t get this plugin working.

    This was the old Evo code:

    include_once($modx->config["base_path"].'/assets/plugins/smartypants.php');
     $output = $modx->documentOutput;
     $modx->documentOutput = SmartyPants($output);


    The plugin is working on OnWebPagePrerender

    Now (for Revo) I treid this.

    include_once($modx->config["base_path"].'/core/components/smartypants/smartypants_german.php');
    	$output = $modx->resource->_output;
    	$modx->resource->_output = SmartyPants($output);
    	return $modx->resource->_output;
    


    What is weird: Sometimes Smartypants is doing its job sometimes not. For exemple it skips all the wrong "quotation marks" in a ressource, then tranfers a word wrapped in asteriks into italics or vice versa.

    Any help would be appreciated.

    P.S. There is an Revo Smartypants plugin or snippet on the extras, but I can’t install this.