We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44819
    • 2 Posts
    Hi.. have a page tv (pagetitle) with the content value "Home", i wish to preprocess with a plugin the tv content.

    Example page tv pagetitle value is Home and i need my plugin process to
    <span id="pagetitle">Home</span>

    is it possible with one modx event and using a plugin to preprocess all page tv values ?

      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Can you give an example of where and how this would be used?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 44819
        • 2 Posts
        Quote from: sottwell at Aug 17, 2013, 09:43 PM
        Can you give an example of where and how this would be used?

        I am using actually a custom modifier in tv tag:

        if ($modx->user->hasSessionContext('mgr')) {
            return "<span id=\"$name\" data-type=\"$options\" data-pk=\"[[*id]]\"  data-url=\"[[~[[*id]]]]\" class=\"editable\">$input</span>";
          }
        return $input;


        I am triying to manipulate the tv data and create editable elements without using any modifier for in place editing with jquery and ajax.