We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29270
    • 13 Posts
    Did a bulk porting of content into MODx and now all contents are showing up as one long line. I suppose I could add a function in the porting process to convert all line breaks to
    , but preferred to keep the raw data intact but only format them at presentation.

    Are there things like output formatter/filter in MODx (in drupal i think they are misnomed as input filter)?

    Also in Smarty, you can add a small processing funtion to your template variable such as {$content|nl2br} where $content would be the equavalent of TV and nl2br is the function. I wonder if there is similar constructs in MODx? I suppose one can probably write a snippet for this: is this the right way to go?

    Many thanks!

    Alan
      • 1343 ☆ A M B ☆
      • 2,213 Posts
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 29270
        • 13 Posts
        This is exactly what I was looking for. Installed and working like a charm.

        You have helped me out a few times already in the last couple of days. Thanks AMDBuilder!
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Glad I could be of some assistance! If you think of any more questions fire away! I’ll try to let someone else answer for a change tongue
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting